\ ^ . $ | ( ) [ ]
* + ? { } ,
\Quote the next metacharacter^Match the beginning of the line.Match any character (except newline)$Match the end of the line (or before newline at the end)|Alternation()Grouping[]Character class*Match 0 or more times+Match 1 or more times?Match 1 or 0 times{n}Match exactly n times{n,}Match at least n times{n,m}Match at least n but not more than m times
\ttab (HT, TAB)\nnewline (LF, NL)\rreturn (CR)\fform feed (FF)\aalarm (bell) (BEL)\eescape (think troff) (ESC)\033octal char (think of a PDP-11)\x1Bhex char\c[control char\llowercase next char (think vi)\uuppercase next char (think vi)\Llowercase till \E (think vi)\Uuppercase till \E (think vi)\Eend case modification (think vi)\Qquote (disable) pattern metacharacters till \E
\wMatch a "word" character (alphanumeric plus "_")\WMatch a non-word character\sMatch a whitespace character\SMatch a non-whitespace character\dMatch a digit character\DMatch a non-digit character\bMatch a word boundary\BMatch a non-(word boundary)\AMatch only at beginning of string\ZMatch only at end of string, or before newline at the end\zMatch only at end of string\GMatch only where previous m//g left off (works only with /g)``*