From: Vince Forgetta Date: 2004-04-14T01:57:01+09:00 Subject: embedded code construct a la perl Hi all, Is it possible to use embedded-code constructs in ruby regexp? Perl Example: "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>] Thanks for the help -- Vince Forgetta Computational Biology McGill University and Genome Quebec Innovation Centre 740 Dr. Penfield Avenue Room 7211 Montreal, Quebec Canada, H3A 1A4 Tel: 514-398-3311 00476 Email: vince.forgetta@staff.mcgill.ca