From: gabriele renzi Date: 2005-12-07T09:42:34+09:00 Subject: Re: Question concerning multiline regexps and best practice Oliver Andrich ha scritto: > ako... schrieb: > Thinks looks a lot cleaner for me, but sadly the "\n" at the end of the > lines are in my way. :) I could strip them, but if it would just > "happen" it would be nicer. use a /x swicth, it should work even with %r stuff: >> rgx=%r[ foo #foo bar #bar ]x => / foo #foo bar #bar /x >> m=rgx.match "foobar" => # >> m[0] => "foobar"