From: David Alan Black Date: 2000-12-16T00:28:53+09:00 Subject: [ruby-talk:7322] Re: Where is /pat/g (Perl) and findall() (Python)? On Fri, 15 Dec 2000, Dave Thomas wrote: > "Franz GEIGER" writes: > > > Wanted to do global pattern search on a string but /pat/g does not work. How > > is this done in Ruby? > > Can you should some context too, because it should... irb(main):003:0> "abc" =~ /(.)/g SyntaxError: compile error (irb):3: parse error (irb):3:in `irb_binding' I've never seen the /g modifier mentioned anywhere (I think -- ?). David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav