{ Frameless }

tokenize($input, $pattern, $flags)

The tokenize($input, $pattern) or tokenize($input, $pattern, $flags) function splits the string provided by $input, based on the regular expression provided by $pattern.

Arguments

ArgumentType
$inputxs:string
$patternxs:string
$flagsxs:string
Return valuexs:string

Examples

tokenize("abc", "\s")("a", "b", "c")
tokenize("a bc", "\s")("a", "", "b", "c")