Hi, Jeff 'japhy' Pinyan wrote: > In Perl, you can execute arbitrary code in a regex. > > "japhy" =~ /((.)(?{ print "<$2>" }))+/; > # <j><a><p><h><y> > > I guess that's not possible in Ruby? One way: irb(main):003:0> "japhy".gsub(/./)do print "<#{$&}>" end <j><a><p><h><y>"" Tobi -- * peace&love. * http://www.pinkjuice.com/