February 2004
Intermediate to advanced
160 pages
2h 27m
English
Metacharacters and character matching provide the basic power behind regular expressions, as has been demonstrated in the lessons thus far. In this lesson you’ll learn how to group expressions together using subexpressions.
Matching multiple occurrences of a character was introduced in Lesson 5, “Repeating Matches.” As discussed in that lesson, \d+ matches one or more digits, and https?:// matches http:// or https://.
In both of these examples (and indeed, in all the examples thus far) the repetition metacharacters (? or * or {2}, for example) apply to the previous character or metacharacter.
For example, HTML developers often place nonbreaking spaces between words to ensure that text ...
Read now
Unlock full access