Divide strings into arrays
separator
(String
): The separator character.s
(String
): The string to split.max_substrings
(UInt64
, optional): Maximum number of substrings to return. Default is 0 (return all substrings).Array(String)
)
Example:
max_substrings
is 0 or omitted, the function returns as many substrings as possible.separator
(String
): The string separator.s
(String
): The string to split.max_substrings
(UInt64
, optional): Maximum number of substrings to return. Default is 0 (return all substrings).Array(String)
)
s
is empty while the separator is not emptyseparator
is an empty string, it splits the string s
into an array of single charactersmax_substrings
as 2, we limit the output to the first two substrings.
regexp
(String
or FixedString
): Regular expression used as the separator.s
(String
): The string to split.max_substrings
(UInt64
, optional): Maximum number of substrings to return. Default is 0 (return all substrings).Array(String)
)
Example:
s
is empty while the regular expression is not emptys
won’t be split.
s
(String
): The string to split.max_substrings
(UInt64
, optional): The maximum number of substrings to return.
Array(String)
)
Example:
max_substrings > 0
, the function returns at most that many substrings.s
(String
): The string to split.max_substrings
(UInt64
, optional): The maximum number of substrings to return. Default is 0 (return all substrings).Array(String)
)
Example:
arr
(Array
): The input array of strings to concatenate.separator
(String
, optional): The separator to use between array elements. Defaults to an empty string.String
)
Example:
arrayStringConcat
joins the array of taco types into a single string, separating each type with a comma and space.
s
(String
): The string to split.max_substrings
(UInt64
, optional): Maximum number of substrings to return. Default is 0 (return all substrings).Array(String)
]
Example:
alphaTokens
extracts all consecutive alphabetic substrings from the taco menu item, ignoring numbers and spaces.
text
(String
or FixedString
): The input text to search for matches.regexp
(String
or FixedString
): The regular expression to match against. Must be a constant.Array(Array(String))
]
name=price
, where both name and price can be quoted or unquoted.string
(String
or FixedString
): The input string to split into n-grams.ngramsize
(UInt
): The size of each n-gram.Array(String)
]
Example:
input_string
(String
): The string to be tokenized.Array(String)
]
Example:
tokens
function splits the input string into separate words, removing the non-alphanumeric separators (underscore, comma, semicolon, and space).