From: ahoward Date: 2002-12-06T11:37:37+09:00 Subject: Re: Regexp imxo - does 'x' work? On Fri, 6 Dec 2002 dblack@candle.superlink.net wrote: [snip] D> > should this not work ? D> > D> > irb(main):001:0> %r{ D> > irb(main):002:0/ foo D> > irb(main):003:0/ #foo D> > irb(main):004:0/ bar D> > irb(main):005:0/ #bar D> > irb(main):006:0/ } D> > /\nfoo\n#foo\nbar\n#bar\n/ D> D> That's working, isn't it? [snip] i guess. it looked like the comments were being included in the regex... i guess they are not. since ruby's comments continue till line's end, i guess there is no way to embed comments in a single line regex? or is there? -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 ====================================