Skip to content

Instantly share code, notes, and snippets.

@quickstep25
Last active August 29, 2015 14:07
Show Gist options
  • Save quickstep25/298e515c0eed06c53b54 to your computer and use it in GitHub Desktop.
Save quickstep25/298e515c0eed06c53b54 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment