From: dblack@... Date: 2007-03-05T10:38:58+09:00 Subject: Re: Help needed with Regexp Class Hi -- On Mon, 5 Mar 2007, Sean Smitz wrote: > I can not seem to get the Regexp::MULTILINE mode enabled for specific > Regexp objects. I've tried: > > Regexp.new(expr, 'm') > Regexp.new(expr, '/m') > Regexp.new(expr, Regexp::MULTILINE) > > among others. What goes in the option field? Thanks in advance, irb(main):001:0> Regexp.new(".", Regexp::MULTILINE) => /./m If expr is itself a regex, then the multiline flag will be ignored, but you should get a warning for that. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)