3.38.3. Using the ’simple match’ operator
Prev | 3.38. Using simple matching and regular expressions for text verification | Next

### 3.38.3. Using the ’simple match’ operator

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*