in reply to pattern matching problem

Eep. .*? Try to specify the string as clearly as possible in your regex. So something like /\\\\[[:alnum:]]+\\([[:alnum:]]+)/; print $1;