Functions — built-in functions to call within expressions
contains(object, value)
Returns true if the object contains the specified
value. If the object is a string, a substring is searched for the value. If
the object is a collection or array, its elements are searched for the
value.
the object to be searched for the presence of.
the value to be searched for.
if the object contains the specified value.
indexOf(string, substring)
Returns the index within a string of the first occurrence of a specified substring.
the string to be searched.
the value to search for within the string.
the index of the first instance of substring, or -1 if not found.
join(strings, separator)
Joins an array of strings into a single string value, with a specified separator.
the separator to place between joined elements.
the array of strings to be joined.
the string containing the joined strings.
keyMatch(map, pattern)
Returns the first key found in a map that matches the specified regular expression pattern, or null if no such
match is found.
the map whose keys are to be searched.
a string containing the regular expression pattern to match.
the first matching key, or null if no match
found.
length(object)
Returns the number of items in a collection, or the number of characters in a string.
the object whose length is to be determined.
the length of the object, or 0 if length could not be determined.
matches(string, pattern)
Returns an array of matching groups for a regular expression pattern against a string, or
null if no such match is found. The first element of the
array is the entire match, and each subsequent element correlates to any
capture group specified within the regular expression.
the string to be searched.
a string containing the regular expression pattern to match.
an array of matching groups, or null if no such
match is found.
split(string, pattern)
Splits a string into an array of substrings around matches of the given regular expression pattern.
the string to be split.
the regular expression to split substrings around.
the resulting array of split substrings.
toLowerCase(string)
Converts all of the characters in a string to lower case.
the string whose characters are to be converted.
the string with characters converted to lower case.
toString(object)
Returns the string value of an aribtrary object.
the object whose string value is to be returned.
the string value of the object.
toUpperCase(string)
Converts all of the characters in a string to upper case.
the string whose characters are to be converted.
the string with characters converted to upper case.