RegEx - Find
The RegEx - Find command takes the value of the variable and finds the regular expression matches. The regular expression must conform to the RE2 specification.
Specify a variable name to search for matches.
Specify a regular expression. A regular expression can contain groups (...). In this case, you will get additional values for each group.
Find All Matches
By default, only the first match with a regular expression is searched. Click this checkbox if you want to find all regular expression matches.
Specify the name of the object variable to which the array of found occurrences will be assigned. If you are looking for only the first match, then this variable will contain an array of strings. At the beginning there is a substring that matches the entire regular expression. If you have specified groups in a regular expression, then substrings for each group will follow. For example, you have the following text email@example.com and firstname.lastname@example.org and the resulting variable ret. Then, for a regular expression (\w+)@(\w+).(\w+) you get an array of strings
1// ret = [email@example.com my eonza org] 2#ret# => firstname.lastname@example.org. 3#ret# => eonza
If you search for all matches, the resulting variable will contain an array with information about each match. For the example above, you will get an array of two arrays of strings.
1// ret = [[email@example.com my eonza org] [firstname.lastname@example.org your eonza com]]. 2#ret# => my 3#ret# => com