Back to Shell

Regex

docs/functions/regex.html

1.9.15317 B
Original Source
REGEX

regex functions

regex.match

Returns true if a match exists, false otherwise.

Syntax

regex.match(str, pattern)
regex.matches

Returns an array of strings

Syntax

regex.matches(str, pattern)

pre>

regex.replace

Syntax

regex.replace(str, pattern, "new str")