Previous
Next
07. Metacharacters - The Character Class
A character class is a way of matching any one of several literal characters.
A character class is defined by enclosing some literal characters inside square brackets.
For example, the regular expression:
[ea]
is a regex consisting of a single character class that will match either a single "e" or a single "a".
Previous
Next
Andrew Hill
For LinuxSA Meeting, 21 November 2000