In message "[ruby-talk:19190] s///eg in ruby"
    on 01/08/06, Tomasz Wegrzanowski <taw / users.sourceforge.net> writes:
|
|How to do this:
|    $str =~ s/a(b)c(d)e/func($1,$2)/eg;
|in Ruby ?

     $str.gsub!(/a(b)c(d)e/){func($1,$2)}