Metacharacters were introduced in Lesson 2, “Matching Single Characters.” In this lesson you’ll learn about additional metacharacters used to match specific characters or character types.
Before venturing deeply into the world of metacharacters, it is important to revisit a topic mentioned in passing previously: escaping.
Metacharacters are characters that have special meaning within regular expressions. The period (
.) is a metacharacter; it is used to match any single character (as explained in Lesson 2). Similarly, the left bracket (
[) is a metacharacter; it is used to mark the beginning of a set (as explained in Lesson 3, “Matching Sets of Characters”).
Because metacharacters take on special ...