Regex matcher - DEPRECATED
Last updated
Last updated
[string/Regex matcher - DEPRECATED]
DEPRECATED! Matches a string to a non-global regular expression, and returns substrings that match the regular expression's groups.
Keywords: extract, match, execute, analyze, regexp, regular expression
regex: string
Receives the regular expression. Example: "(?fox|cat) jumps over"
string: string
Receives the string to be matched. Example: "The quick brown fox jumps over the lazy dog. It barked."
groups: (string[] or null)
Sends the matched groups.
Example: ``` [ "fox jumps over", "fox" ] ```
not found: null
Sends null if there is no match in the string. Example: null