# Regular expressions ### **SED**
Character | Description |
^ | Matches the beginning of the line |
$ | Matches the end of the line |
. | Matches any single character |
\* | Will match zero or more occurrences of the previous character |
\[ \] | Matches all the characters inside the \[ \] |
Regular expression | Description |
/./ | Will match any line that contains at least one character |
/../ | Will match any line that contains at least two characters |
/^#/ | Will match any line that begins with a '#' |
/^$/ | Will match all blank lines |
/}$/ | Will match any lines that ends with '}' (no spaces) |
/} \*$/ | Will match any line ending with '}' followed by zero or more spaces |
/\[abc\]/ | Will match any line that contains a lowercase 'a', 'b', or 'c' |
/^\[abc\]/ | Will match any line that begins with an 'a', 'b', or 'c' |