in reply to Find a string within a string

Hi,

Just a quick note:
add the line

use re debug;
at the beginning of your script, and it all becomes clear. This will put extra debug information on you regexes, and in your case will show what to match to wich string. This is fairly readable.
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium