Regex¶
Selects from the input the substring matching a regular expression.
Selects the text from the input that matches the supplied regular expression. If the input does not match, an empty string is returned.
Parameters¶
- 1 —
patternMandatory — accepts: regex -
The regular expression to match. Use
/.../notation to delimit the pattern.
Input type¶
STRING
Output type¶
STRING
Examples¶
Capture a phone number prefix
Match anything