Extracts all occurrences of pattern in the string, where pattern is a regular expression.
find-all(string:string, pattern:string) -> list of string |
Name |
Type |
Description |
---|---|---|
string |
string |
The input string. |
pattern |
string |
The pattern as a regular expression. |
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"]