Use the matches operator to compare a string to a regular expression. Use of the like operator resembles the use of regular expressions in UNIX or Perl; for simpler regular expressions, see like operator.

[abc]
[a-c]
The hyphen (-) has no special meaning outside of bracket delimiters.
[^abc]
The caret has no special meaning other than in the first position within brackets.
Any other character in the regular expression is a literal that is compared to a single character in the source string.
myVar01 = "abcdef";
// evaluates as TRUE
if (myVar01 matches "a?c*")
;
end
myVar01 = "ab*def";
// evaluates as TRUE
if (myVar01 matches "ab\\*[abcd][abcde][^a-e]")
;
end
myVar01 = "ab*def";
// the next logical expression evaluates to "true"
if (myVar01 matches "ab+*def" escape "+")
;
end