February 2004
Intermediate to advanced
160 pages
2h 27m
English
In the previous lessons, you learned how to match individual characters using a variety of metacharacters and special class sets. In this lesson, you’ll learn how to match multiple repeating characters or sets of characters.
You’ve learned all the basics of regular expression pattern matching, but all the examples have had one very serious limitation. Consider what it would take to write a regular expression to match an email address. The basic format of an email address looks something like the following:
text@text.text
Using the metacharacters discussed in the previous lesson, you could create a regular expression like the following:
\w@\w\.\w
The \w would match all alphanumeric characters (plus ...
Read now
Unlock full access