3. Using Wildcards for Text Verification

Simple matching

Wildcards

Repetition

Combining wildcards with repetition

\includegraphics[height=2cm]{lightbulb} The regular expression is applied to your entire string. To search for a match within a string, wildcards need to be placed on either side. See the examples below for more information.

Ranges

\includegraphics[height=2cm]{lightbulb} Note that there are no spaces between the ranges.

Alternatives

Escape character

Verbatim

Useful examples

For additional information about syntax and usage of regular expressions in general, please consult one of the many textbooks on the subject.

\includegraphics[height=2cm]{lightbulb} 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 3.

Simple matching

Wildcards

Useful examples



Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.