The documents in this section discuss the core triggers and actions in Flux.
The Regular Expression Action returns its results in the flow context variable “result”. These results include the groups matched by the regular expression pattern, the total number of matches, and an indication of whether the input string contained the regular expression pattern at all:
|Flow Context Variable||Field||Java Type||Description||Prescript / Postscript Example|
|RESULT||matched||boolean||Indicates whether the regular expression pattern was found in the input content.|| |
|RESULT||end||int||The 0-based index of the last character matched in the input.|| |
|RESULT||groupCount||int||The number of matches found.|| |
|RESULT||groups||String||The input sequences matched by the regular expression pattern. |
If the replaceFirst and/or replaceAll properties are used, this result will contain the replaced text.
groups contains the matching pattern, groups contains the first regular expression group matched, groups the second matching group, etc.
|RESULT||start||int||The 0-based location of the first occurrence of the regular expression matched in the input file or input string.|| |
You could pass the list of matching groups into a For Each Collection Element Action using the following map:
You can also save the results into a new variable: