”.”
matches any single character except newline
“*”
matches zero or more occurrence of the previous single character
\ (backslash)
escape character
^ (caret)
matches the beginning of a line
$
matches the end of a line
do not use $ with double quotes - problems with the shell
[…]
- combine […] with * to match repeated sets
[^…]
matches the complement of whats inside the square brackets
\less-than-sign
matches the BEGINNING of a regular expression word
>
matches the END of a regex word
(….)
\n
- recalls the remembered portion where n is a digit from 1 to 9
X{m}
X{m,n}
X{m,}
matches m or more repeats of X
X{,m}
matches simply m or fewer repeats of X