Skip to content

Instantly share code, notes, and snippets.

@thiagosil
Created January 8, 2012 19:23
Show Gist options
  • Save thiagosil/1579374 to your computer and use it in GitHub Desktop.
Save thiagosil/1579374 to your computer and use it in GitHub Desktop.
Patterns ruby
/pattern/
/Perl|Python/ # Perl or Python
/P(erl|ython)/
\s # whitespace character
\d # any digit
\w # anyword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment