From: Simon Strandgaard Date: 2004-08-24T04:26:38+09:00 Subject: Re: Regexp scanning with MatchData (Re: multiple regexp matches) 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 "abcba".alter(/b(.)/, '\1b', :count=>1) #=> "acbba" -- Simon Strandgaard