| \n |
Newline |
| \r |
Carriage return |
| \t |
Tab |
| \0 |
NULL character |
| [abc] |
Character set (a, b, or c) |
| [^abc] |
Negated character set (not a, b, or c) |
| [a-z] |
Character range (a through z) |
| [^a-z] |
Negated character range (not a through z) |
| [a-zA-Z] |
Character range (a through z or A through Z) |
| [[:alnum:]] |
Alphanumeric character set |
| [[:alpha:]] |
Alphabetic character set |
| [[:ascii:]] |
ASCII codes 0 - 127 |
| [[:blank:]] |
Blank character set (space or tab) |
| [[:cntrl:]] |
Control character set |
| [[:digit:]] |
Digit character set |
| [[:graph:]] |
Graphical character set |
| [[:lower:]] |
Lowercase alphabetic character set |
| [[:print:]] |
Printable character set |
| [[:punct:]] |
Punctuation character set |
| [[:space:]] |
Whitespace character set |
| [[:upper:]] |
Uppercase alphabetic character set |
| [[:word:]] |
Word character set (alphanumeric or underscore) |
| [[:xdigit:]] |
Hexadecimal digit character set |
| [[:<:]]< /td>
| Start of word |
| [[:>:]] |
End of word |
| \. |
Any single character |
| a|b |
a or b |
| \s |
Whitespace (space, tab, newline) |
| \S |
Non-whitespace |
| \d |
Digit [0-9] |
| \D |
Non-digit |
| \w |
Word character (alphanumeric or underscore) |
| \W |
Non-word character |
| \X |
Any Unicode sequences, line breaks, etc. |
| \C |
Match one data unit |
| \R |
Match any Unicode line break sequence |
| \N |
Match anything but a newline |
| \v |
Match a vertical tab |
| \V |
Match anything but a vertical tab |
| \h |
Match a horizontal tab |
| \H |
Match anything but a horizontal tab |
| \K |
Match nothing, but discard previous match |
| \# |
Match subpattern number # |
| \pX |
Match character property X |
| \p{...} |
Match character property {...} |
| \PX |
Negation of /pX |
| \P{...} |
Negation of /p{...} |
| \Q...\E |
Quote the following characters |
| \gn |
Match nth subpattern |
| \g<n> |
Match expression defined in the nth capture group |
| \g{-n} |
Match text nth relative previous subpattern matched |
| \g<+n> |
Match expression defined in the nth relative capture group. |
| \d |
Digit [0-9] |
| \D |
Non-digit |
| \w |
Word character (alphanumeric or underscore) |
| \W |
Non-word character |
| \s |
Whitespace (space, tab, newline) |
| \S |
Non-whitespace |
|
MORE TO COME |