quickstep25
10/5/2014 - 10:47 AM

Dreamweaver - Regex - Cheatsheet

Dreamweaver - Regex - Cheatsheet

.		Any single character, except a newline
\d		Any digit character (0-9)
\D		Any non-digit character—in other words, anything except 0-9
\w		Any alphanumeric character or the underscore
\W		Any character, except an alphanumeric character or the underscore
\s		Any white-space character, including space, tab, form feed, or line feed
\S		Any character, except a white-space character
\f		A form feed character
\n		A line feed character
\r		A carriage return character
\t		A tab character

*		Match 0 or more times
+		Match 1 or more times
?		Match no more than once (makes the character or group optional)
{n}		Match exactly n times
{n,m}		Match at least n, but no more than m times
*?		Match 0 or more times, but as few times as possible
+?		Match 1 or more times, but as few times as possible
??		Match 0 or 1 times, but as few times as possible
{n}?		Match at least n times, but as few times as possible
{n,m}?		Match at least n times, no more than m times, and as few times as possible