From: Bill Kelly Date: 2001-10-09T18:11:18+09:00 Subject: [ruby-talk:22292] Re: ruby idiom for m/regexp/g (i.e. 'gmatch') From: "Yukihiro Matsumoto" > Hi, > > In message "[ruby-talk:22286] ruby idiom for m/regexp/g (i.e. 'gmatch')" > on 01/10/09, "Bill Kelly" writes: > > |What might be a common/kewl ruby idiom for Perl's > | > | while ("some str" =~ /regexp/g) { > | ... > | } > > String#scan > > str.scan(/regexp/) { > ... > } > > matz. > Woohoo ! ! ! ! ! Thanks =) Bill