[This page has been machine-translated.]

Regular expression

A regular expression is an extremely powerful way to describe text patterns. Regular expressions are used as filter criteria in text searches by matching the text against the pattern of the regular expression. An explanation of regular expressions would far exceed the scope of this program help. References to resources on the web can be found at the end of this page.

Examples (ignoring capitalization):

Regular expression Meaning pay attention Don't pay attention
Anton the text Anton somewhere in the canton of Aargau Anto
^N57 the text N57 at the beginning of the line N572 The N57.
dead The text died somewhere stillbirth Stillbirth
to[td]geb the text totgeb or todgeb somewhere stillborn Todtgeb
^$ an empty field X
N\d+ the letter N followed by at least one digit N572 Na72
born.*Mainz the words born and Mainz with any characters in between born in Mainz born in Mainz
[az][0-3]\d{3} a letter followed by 0, 1, 2 or 3 followed by exactly 3 digits A2123 A212

References

Tutorial on regular expressions by Daniel Fett
Explanations of regular expressions by Stefan Trost Media
Test regular expressions online