Product Update

String Manipulation Operators for Automation Rules

Carlyn Manly
2019-01-08
2 Min Read

A whole new set of operators have become available that makes it possible to create Automation Rules that manipulate strings of characters.

The new operators are:

  • size, length โ€” returns the number of characters in string
  • strip โ€” removes leading and trailing white spaces
  • squeeze โ€” removes double spaces
  • reverse โ€” flips the characters around
  • upcase โ€” forces all characters to uppercase
  • downcase โ€” forces all characters to lowercase
  • swapcase โ€” switches lower case to capitals and vice versa
  • empty?, blank? โ€” true when string is empty or only contains white spaces
  • present? โ€” true if string contains characters other than white spaces
  • split() โ€” splits the string into an array of strings on the separator. Separator can be a quoted string, such as โ€˜ โ€˜ or a regular expression such as /[,|]/.
  • slice(, ) โ€” takes a part of the string, start-index is mandatory, if length is omitted all characters from the start till the end of the string are returned
  • replace(, ) โ€” replaces a string or regular expression with a quoted string

Examples of how these new operators can be used in expressions can be found in the online help for Automation Rule Operators under the header โ€˜String Manipulationโ€™.

Administrator who have already been making use of Xurrentโ€™s support for SCIM will probably find these new operators very helpful. ย  ย