From: Robert Klemme Date: 2004-04-14T16:59:14+09:00 Subject: Re: embedded code construct a la perl "Vince Forgetta" schrieb im Newsbeitrag news:407C1AD7.3040406@staff.mcgill.ca... > Hi all, > > Is it possible to use embedded-code constructs in ruby regexp? > > Perl Example: > > > > "123"= ~ m{ I guess, this should have read "123" =~ m{ > \d+ > (?{print "matched at [$'<$&>$']\n"}) > (?!) > }x; > > > > Output: > > matched at [<123>] > matched at [<12>3] > matched at [<1>23] > matched at [1<23>] > matched at [1<2>3] > matched at [12<3>] No. If you let us know what you want to do mayve we can come up with an alternative solution. Regards robert