$$matchall
Returns all matches substring from input by a pattern (and optionally group id)
Usage​
{
"$$matchall": /* Input string */,
"pattern": /* string */,
"group": 0 /* integer */
}
"$$matchall(<pattern>,[group]):{input}"
note
Concrete values in the usage example are default values.
Returns​
string[]
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | string | Yes | Input string | |
pattern | string | Yes | Regular expression to match and extract from input string | |
group | integer | 0 | The group id to get |
Examples​
Input
Definition
Output
"hello my helloKitty"
"$$matchall([el]):$"
[
"e",
"l",
"l",
"e",
"l",
"l"
]
"hello my helloKitty"
"$$matchall([le]+):$"
[
"ell",
"ell"
]
"hello my helloKitty"
"$$matchall(hell):$"
[
"hell",
"hell"
]
"hello my helloKitty"
"$$matchall(^hello):$"
[
"hello"
]
"hello my helloKitty"
"$$matchall(hello$):$"
null
"world to waterWorld"
"$$matchall('w(\\\\w+)d',1):$"
[
"orl",
"aterWorl"
]