$$match
Returns a matched substring from input by a pattern
Usage​
"$$match(<pattern>,[group]):{input}"
Returns​
string
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
pattern | string | Regex | Yes | Regular expression to match and extract from input string |
group | integer | 0 | A matching group to return |
Examples​
Input
Definition
Output
"hello"
"$$match([le]+):$"
"ell"
"world"
"$$match('w(\\\\w+)d',1):$"
"orl"