Mega Code Archive

 
Categories / Ruby / Development
 

Use parentheses within patterns,just as you can in arithmetic expressions

# A pattern that matches a string containing the text Perl or the text Python /P(erl|ython)/