31. Metacharacters - The Final Review
- At last! We're done with metacharacters. Now we know all about:
- Use of [ and ] to create character classes
- Using ^ and - inside character classes to negate
the class, or create a range
- Use of | to provide alternation
- Use of ( and ) or \( and \) to limit the scope of alternation
- Use of ^ and $ to match the beginning and the end of a line
- Use of . to match "any" character
- The ?, *, + and {min, max} quantifiers
- And also:
- Use of \ to escape metacharacters
- Using grouping to apply quantifiers to a sequence of literals
- Using grouping to access backreferences with \1, \2, ... or $1, $2, ...
- Using \< and \> or \b and \B to match word boundaries
- A bunch of Perl and POSIX specific metasequences
|