String functions
In transforms and metrics, you can use the following functions to operate on strings. For more information, see Using strings in formulas.
Important
Formula expressions can only output double or string values. Nested expressions can output other data types, such as strings, but the formula as a whole must evaluate to a number or string. You can use the jp function to convert a string to a number. The Boolean value must be 1 (true) or 0 (false). For more information, see Undefined, infinite, and overflow values.
Function | Description |
---|---|
|
Returns the length of the string |
|
Returns the index of the string |
|
Returns |
|
Returns the string |
|
Returns the string |
|
Evaluates the string Use this function to do the following:
To extract a string value from a JSON structure and return it as a
number, you must use multiple nested The string Examples
|
|
Returns a concatenated string with a delimiter. This function uses the
first input string as a delimiter and joins the remaining input strings
together. This behaves similar to the join(CharSequence delimiter, CharSequence... elements) Examples
|
|
Returns a string in the specified format. This function evaluates
Examples
|
|
Returns a concatenated string. With this formatted function, you can use
a simple expression to concatenate and format strings. These functions may
contain nested expressions. You can use Examples
|