From: Matt Armstrong Date: 2002-12-15T01:35:51+09:00 Subject: Re: [RCR] Global Regexp Match Mechanism (//g) nobu.nokada@softhome.net writes: >> Though Regexp#match with a character offset may be handy too, since >> it returns the MatchData. > > I also want this extension. > > Index: re.c > =================================================================== > RCS file: /cvs/ruby/src/ruby/re.c,v > retrieving revision 1.86 > diff -u -2 -p -r1.86 re.c > --- re.c 12 Dec 2002 09:17:32 -0000 1.86 > +++ re.c 12 Dec 2002 09:31:57 -0000 > @@ -1130,10 +1130,18 @@ rb_reg_match2(re) > > static VALUE > -rb_reg_match_m(re, str) > - VALUE re, str; > +rb_reg_match_m(argc, argv, re) I applied this to the CVS version of Ruby and like it. I have some code that could be more efficient with this capability. Please commit it. :-) Or should an official RCR be filed?