FORMULA LANGUAGE


Examples: Locating and extracting substrings
1. (@Contains). This example returns True to R if Substring is anywhere in String. The search is case sensitive.
2. (@Contains). This Example returns True to R if Substring1 or Substring2 is anywhere in String. The search is case sensitive.
3. (@Left). This example returns to R the leftmost N characters in String.
4. (@Left). This example returns to R the characters left of Substring in String.
5. (@RightBack, @Left). If the common name in the ComposedBy field is "Judith Woo," this formula calculates "Woo, Judith." @RightBack returns the last name and @Left returns the first name.
6. (@Middle). This example returns N characters to R from String starting after Substring.
7. (@ReplaceSubstring). This agent example makes three substitutions in the textBody field of the affected documents. The third substitution is in case the second substitution causes a sentence to end with two periods.
8. (@Word). This example extracts word n from string s, using a space as the word separator.
9. (@FileDir) This example extracts "c:\market\data\" from the specified path name.
See Also