This function returns a text list with all substrings matching a given regular expression.
findPattern(text, regex) #Output: Text list
If you want to ignore the case, have a look at the findPatternIgnoreCase() function.
Parser expression | Output |
---|---|
findPatternIgnoreCase("Grass is Green and Sky is Blue.", "red|green|blue") | ["Green", "Blue"] |
findPattern("Grass is Green and Sky is Blue.", "red|green|blue") | [ ] |
Use cases and examples
Use case |
---|
No content found. |
If you still have questions, feel free to refer to our support team.