On Tue, 2 Jan 2001, David Alan Black wrote:

>    str.gsub!(re) do |m|
>      matches.push $~
>      "#{st}#{$&}#{en}"
>    end

Come to think of it -- no need for the |m| block variable in that
version.


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav