Loading

MATCH

strings

The MATCH function applies a regular expression (regexp) to a string.

It consumes two parameters from the top of the stack: the regexp pattern and the string to test matching with.

If the string doesn’t match the regexp, the function return an empty list. If it matches, the function will return a list of every matching group.

Instead of using a regular expression STRING, you can also use the result of MATCHER for improved performance.

MATCH is available since version 1.0.0.

See also

Signatures

Examples

'abc def ghi jkl' '([^ ].*) ([^ ].*) [^ ].* [^ ].*' MATCH