This is not exactly what you expect! I do not want the regular expression to match a line break; instead, I want to write a long regular expression that I would like to split into several lines of code for readability.
Something like:
"bar" =~ /(foo| bar)/
Can this be done?
code-formatting ruby regex
Chowlett Sep 21 '10 at 16:03 2010-09-21 16:03
source share