String Functions
/string/format/lowerCase
Convert the input string into lower case.
/string/format/upperCase
Convert the input string into upper case.
/string/format/normalize
Normalizes the input string by:
- converting it to lower case
- trimming it
- replacing one or multiple # signs with “no”
- replacing + with “plus”
- replacing one or more occurances of the following symbols with empty string:
/,\,:,;,-,(,),&,.,%,@,^,$,!,*,=,_,,,?,<,>,`,[,],~,',"
/string/format/replaceAll
Replaces all matches to the specified regex with replacement string.
Extra parameters:
{
"regex": "<regex1>",
"replacement": "<replacement string>",
"quoteReplacement": "true|false"
}If quoteReplacement is set to "true", [Matcher.quoteReplacement](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#quoteReplacement(java.lang.String) function will be applied to the replacement string before passing it to the String.replaceAll function.
/string/format/replaceFromDictionary
Tokenizes the intput string using delimiter and replaces each token using dictionary. Extra parameters:
{
"delimiter": "<delimiter>",
"strategy": "exact|ignoreCase|normalize",
"quoteReplacement": "true|false",
"sourceName": "<dictionary source name>",
"spaceName": "<dictionary space name>",
"tableName": "<dictionary table name>",
}Dictionary table must have the following columns:
from- string to matchto- replacement string
Strategies:
exact- no transformation applied to the token and dictionary from-string before looking up in the dictionaryignoreCase- String.toLowerCase function is applied to the token and dictionary from-string before looking up in the dictionarynormalize- InfoLink’sstring/format/normalizefunction is applied to the token and dictionary from-string before looking up in the dictionary
/string/format/trim
Trim the input string.
/string/check/regex
Return "true" if all specified regex expressions match the input string. Otherwise returns "false".
Extra parameters:
{
"regexes": ["<regex1>", ..., "<regexN>"],
"caseSensitive": "true|false"
}
OR
{
"regex": "<regex1>",
"caseSensitive": "true|false"
}
/string/get/regex
Validate the input string against the set of regular expressions returning a String value of the aggregated groups. See org.apache.commons.validator.routines.RegexValidator.validate() .
Extra parameters:
{
"regexes": ["<regex1>", ..., "<regexN>"],
"caseSensitive": "true|false"
}
OR
{
"regex": "<regex1>",
"caseSensitive": "true|false"
}