From: Jeff Wood Date: 2005-11-28T01:52:35+09:00 Subject: Re: String#to_rx ? ------=_Part_20616_15407892.1133110348694 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I do agree that I should have reviewed the document before posting a response. I have done that, and still hold to what I've stated. The Perl syntax he proposed is a hideous mess of line noise ( no surprises ). I don't believe that the suggested functionality can be added without slowing regular expression matching. But there IS one idea in the document I like and would require NO changes t= o regexp syntax. # define a normal regex with 1 group a =3D /(\d+)/ # add a rule for group 1s matching a.rules << Rexexp::Rule.new( :group, 1 ) { |val| val > 20 } # now play. b =3D "200 19 14 21 1" b.scan a #=3D>[ "200","21" ] ... at least that's how I'd do it ... Beyond that, I still feel trying to get anything more than "ideas" for features from Perl is NOT a good path fo= r ruby. Anyways, I do see value in what you brought to the table ... but maybe next time explain the feature for it's merits not "hey look what perl is doing!" ... ------=_Part_20616_15407892.1133110348694--