From: nobu.nokada@... Date: 2002-12-14T12:45:21+09:00 Subject: Re: [RCR] Global Regexp Match Mechanism (//g) Hi, At Sat, 14 Dec 2002 11:53:20 +0900, Austin Ziegler wrote: > Okay; since 90% of what we need is present, why not add a new > method to Regexp, #gmatch(str, pos = nil, flags = nil). > Adding pos to #match seems a poor fit because of the flags > argument already present. Regexp#match in present takes only str. > Also, if a MatchData is passed as str, it should implicitly > call MatchData#end for pos unless pos is non-nil. IMO, being > explicit about doing a //g-type match is a Good Thing. MatchData as String? Well, in such case I'd expect matching to $& (equals $~.to_s). -- Nobu Nakada