Skip to main content

$$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​

ArgumentTypeValuesRequired / Default ValueDescription
PrimarystringYesInput string
patternstringYesRegular expression to match and extract from input string
groupinteger0The 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"
]