Loading

MATCH


strings
Since v1.0.0
Available on all platforms
See also

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.

Signature

Examples

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