Skip to content

Instantly share code, notes, and snippets.

@mickelsonm
Created April 30, 2016 06:48
Show Gist options
  • Save mickelsonm/efe16433af831c02d80b7ef687ee9adb to your computer and use it in GitHub Desktop.
Save mickelsonm/efe16433af831c02d80b7ef687ee9adb to your computer and use it in GitHub Desktop.
Miscellaneous from Regex talk
  • cks command (exact matches)
  • matching characters (example: o.)
  • alternate character classes (example: b[eor]at)
  • negated character classes (example: b[^eo]at)
  • ranges (example: [1-9], [A-Za-z])
  • anchors (example: ^Hmm, Hmm$)
  • repetition (example: So*me , o{2,})
  • named capture
  • replacements (ex. ^Ms.(.|))
  • \d is the same as 0-9 (integral....probably from sprintf?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment