Skip to content

Instantly share code, notes, and snippets.

@r-winkler
Last active Oct 17, 2016
Embed
What would you like to do?
# Anchors
^ Start of string
$ End of string
# Ranges
[A-Za-z] any letter
[0-9] any digit
[349] matches 3, 4 or 9
[^5] any character except 5 (negation)
# Boundaries
\s whitespace
\S non-whitespace
\b word boundary
\B non-word boundary
# Quantifiers
* zero or more times
? zero or one time
+ one or more times
{n} exactly n times
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment