From: "David A. Black" Date: 2004-08-24T19:40:58+09:00 Subject: Re: Regexp scanning with MatchData (Re: multiple regexp matches) Hi -- On Tue, 24 Aug 2004, Martin DeMello wrote: > Simon Strandgaard wrote: > > On Monday 23 August 2004 21:12, Simon Strandgaard wrote: > > [snip talk about substitute] > > > string.substitute(/pattern/, 'replacement', :option1=>1, :option2=>2) > > > > if String#substitute is too long.. then maybe name it String#alter > > String#replace What would you replace the current String#replace with? :-) > And alias :s :replace for unix diehards No -- leave it comprehensible, for Ruby diehards :-) David -- David A. Black dblack@wobblini.net