Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Created September 22, 2014 04:08
Show Gist options
  • Save v-thomp4/41ec76b3982c615267e5 to your computer and use it in GitHub Desktop.
Save v-thomp4/41ec76b3982c615267e5 to your computer and use it in GitHub Desktop.
The special characters Regex
Characters Meaning
$ End of a line
^ Start of a line
[] Character class
? The preceding item is optional and matched at most once
* Zero or more of the preceding item
+ One or more of the preceding item
{} Match some number of the preceding item
| Alternation (true if either of the regexes it separates match)
. Any one character
\ Escape (take the following character literally)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment