in reply to Regex problem

You are close.

Remember, in a regex *all* the special characters need to be escaped if you are trying to match them explicitly.

Take a look at the perl regex tutorial (perldoc perlretut) -- the information to help you is metacharacters.

Or check out the tutorials here. What you're doing is rather basic, and has been answered before. RegEx Tutorials