Skip to content

Instantly share code, notes, and snippets.

@klan
Created June 23, 2013 11:18
Show Gist options
  • Save klan/5844671 to your computer and use it in GitHub Desktop.
Save klan/5844671 to your computer and use it in GitHub Desktop.
Basic regex
Metachar. Name Matches
. dot Any one character
[...] class Any character listed
[^...] negated class Any character NOT listed
-------------------------------------------------------------
^ caret Start of line
$ dollar End of line
\< backslash less-than Start of word
\> backslash greater-than End of word
-------------------------------------------------------------
| bar, pipe Matches either expression is separates
(...) parantheses Limits expressions (with use of ex. pipe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment