Regular Expressions Cheat Sheet by DaveChild
A quick reference guide for regular expressions (regex), including symbols, ranges, grouping, assertions and some sample patterns to get you started.
Add a ? to a quantifier to make it ungreedy.
"Escaping" is a way of treating characters which have a special meaning in regular expressions literally, rather than as special characters.
The escape character is usually \
Groups and Ranges
Ranges are inclusive.
* PCRE modifier
Some regex implementations use \ instead of $.