Simple match is a good option if you are sure that you will only want to use the basic wildcards given below. For more powerful regular expressions, use the matches parameter (Section 3.38.2, “Using the ’matches’ operator”).
Simple matching
abc matches ”abc” and nothing else.
Wildcards
? represents one instance of any character.
* represents any number (zero or more) of any characters.
Useful examples
A string that starts with a is represented by: a*
A string that ends in a is represented by: *a
A string that starts with a, ends in b and has unknown values (0 or more) in the middle is represented by: a*b
A string which contains a somewhere between other unknown characters (0 or more) is represented by: *a*