Created
January 8, 2012 19:23
-
-
Save thiagosil/1579374 to your computer and use it in GitHub Desktop.
Patterns ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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