Skip to content

Instantly share code, notes, and snippets.

@bradhe
Created April 22, 2012 07:14
Show Gist options
  • Save bradhe/2462499 to your computer and use it in GitHub Desktop.
Save bradhe/2462499 to your computer and use it in GitHub Desktop.
1.9.3p125 :009 > "don't feel".match(/(?<word>feel|don't feel)/)
=> #<MatchData "don't feel" word:"don't feel">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment