String functions
| Name | Description |
|---|---|
| base64_decode_toarray | Decodes a Base64-encoded string into an array of bytes. |
| base64_decode_tostring | Decodes a base64 string to a UTF-8 string. |
| base64_encode_fromarray | Converts a sequence of bytes into a Base64-encoded string. |
| base64_encode_tostring | Encodes a string as base64 string. |
| coalesce | Evaluates a list of expressions and returns the first non-null (or non-empty for string) expression. |
| countof_regex | Counts occurrences of a substring in a string. Regex matches don’t. |
| countof | Counts occurrences of a substring in a string. |
| extract_all | Gets all matches for a regular expression from a text string. |
| extract | Gets a match for a regular expression from a text string. |
| format_bytes | Formats a number of bytes as a string including bytes units |
| format_url | Formats an input string into a valid URL by adding the necessary protocol if it’s escaping illegal URL characters. |
| gettype | Returns the runtime type of its single argument. |
| indexof | Function reports the zero-based index of the first occurrence of a specified string within input string. |
| isascii | Checks whether all characters in an input string are ASCII characters. |
| isempty | Returns true if the argument is an empty string or is null. |
| isnotempty | Returns true if the argument isn’t an empty string or a null. |
| isnotnull | Returns true if the argument isn’t null. |
| isnull | Evaluates its sole argument and returns a bool value indicating if the argument evaluates to a null value. |
| parse_bytes | Parses a string including byte size units and returns the number of bytes |
| parse_csv | Splits a given string representing a single record of comma-separated values and returns a string array with these values. |
| parse_json | Interprets a string as a JSON value and returns the value as dynamic. |
| parse_url | Parses an absolute URL string and returns a dynamic object contains all parts of the URL. |
| parse_urlquery | Parses a URL query string and returns a dynamic object contains the Query parameters. |
| quote | Returns a string representing the input enclosed in double quotes, with internal quotes and escape sequences handled appropriately. |
| replace_regex | Replaces all regex matches with another string. |
| replace_string | Replaces all string matches with another string. |
| replace | Replace all regex matches with another string. |
| reverse | Function makes reverse of input string. |
| split | Splits a given string according to a given delimiter and returns a string array with the contained substrings. |
| strcat_delim | Concatenates between 2 and 64 arguments, with delimiter, provided as first argument. |
| strcat | Concatenates between 1 and 64 arguments. |
| strcmp | Compares two strings. |
| string-size | Returns the length, in characters, of the input string. |
| strlen | Returns the length, in characters, of the input string. |
| strrep | Repeats given string provided number of times (default = 1). |
| substring | Extracts a substring from a source string. |
| tolower | Converts a string to lower case. |
| totitle | Converts a string to title case. |
| toupper | Converts a string to upper case. |
| translate | Substitutes characters in a string, one by one, based on their position in two input lists. |
| trim_end_regex | Removes trailing match of the specified regular expression. |
| trim_end | Removes trailing match of the specified cutset. |
| trim_regex | Removes all leading and trailing matches of the specified regular expression. |
| trim_space | Removes all leading and trailing whitespace from a string. |
| trim_start_regex | Removes leading match of the specified regular expression. |
| trim_start | Removes leading match of the specified cutset. |
| trim | Removes all leading and trailing matches of the specified cutset. |
| unicode_codepoints_from_string | Converts a UTF-8 string into an array of Unicode code points. |
| unicode_codepoints_to_string | Converts an array of Unicode code points into a UTF-8 encoded string. |
| url_decode | Converts encoded URL into a regular URL representation. |
| url_encode | Converts characters of the input URL into a format that can be transmitted over the Internet. |
Browse by theme#
Build and compare
Concatenate and repeat strings, change case, reverse them, and measure or compare their length.
Check values
Test whether a value is empty, null or ASCII, get its type, or fall back to the first non-null value.
Encode and decode
Encode and decode Base64, URLs and Unicode code points, and quote strings or regex patterns.
Parse and format
Parse CSV, JSON, URLs, paths and byte sizes into structured values, or format them back.
Replace and trim
Replace text, translate characters and trim whitespace, characters or regex matches from either end.
Search and extract
Find, count and extract substrings and regex matches, or split a string into parts.