To check if a text has matches with a given regular expression
This function does the same as
contains(): it checks a text for the occurrence of a certain string. But doing this, it uses regular expressions. You, therefore, have much more possibilities to analyze your given texts.
testx(string, string, string)
testx(myText, regex)To return Yes (
true) if a given text matches a given regular expression.
testx("Hello [username]! You have [number of messages] messages!", "\[(\w|\s)*\]")
Result: Yes (
(with the regular expression matching any combination of normal characters and white spaces between square brackets)
testx(myText, regex, flags)To return Yes (
true) if a given text matches a given regular expression. Flags can be added to the regular expression.