From: Tobias Reif Date: 2002-02-07T05:47:04+09:00 Subject: Re: Regexp::Parser ported to Ruby...? Hi, Jeff 'japhy' Pinyan wrote: > In Perl, you can execute arbitrary code in a regex. > > "japhy" =~ /((.)(?{ print "<$2>" }))+/; > #

> > I guess that's not possible in Ruby? One way: irb(main):003:0> "japhy".gsub(/./)do print "<#{$&}>" end

"" Tobi -- * peace&love. * http://www.pinkjuice.com/