From: ahoward Date: 2002-12-06T10:37:12+09:00 Subject: Regexp imxo - does 'x' work? should this not work ? irb(main):001:0> %r{ irb(main):002:0/ foo irb(main):003:0/ #foo irb(main):004:0/ bar irb(main):005:0/ #bar irb(main):006:0/ } /\nfoo\n#foo\nbar\n#bar\n/ or this? irb(main):007:0> %r{foo bar}x /foo bar/x what DOES 'x' do? perl -e 'print "foobar" =~ /foo bar/x' >> 1 ruby -e 'print "foobar" =~ /foo bar/x' >> 0 confused. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================