RegEx cheat-sheet
- Matches the beginning of a line - ^
- Matches the end of the line - $
- Matches any character - .
- Matches whitespace - \s
- Matches any non-whitespace character - \S
- Repeats a character zero or more times - *
- Repeats a character zero or more times (non-greedy) - *?
- Repeats a character one or more times - +
- Repeats a character one or more times (non-greedy) - +?
- Matches a single character in the listed set - [aeiou]
- Matches a single character not in the listed set - [^XYZ]
- The set of characters can include a range - [a-z0-9]
- Indicates where string extraction is to start - (
- Indicates where string extraction is to end - )
For more information about using regular expressions in Python, see https://docs.python.org/2/howto/regex.html