in reply to regex matching problem

Hi, geektron.
You don't mention what kind of failure you're getting, and we don't see the code around your 'real script', so this is a shot in the dark.

It may be that something else is tromping on either $_ or, IMO more likely, the $1, $2 etc, variables with other matches after your regex.

-Theo-
(so many nodes and so little time ... )