find-all
Extracts all occurrences of pattern in the string, where pattern is a regular expression.
Signature
find-all(string:string, pattern:string) -> list of string |
Parameters
Name | Type | Description |
---|---|---|
string | string | The input string. |
pattern | string | The pattern as a regular expression. |
Examples
The following expression extracts all occurrences of "o" from string "apollo".
find-all('apollo', 'o') |
The result is the following list of string: ["o", "o"]