in reply to multiple options for pattern match help
What was the error message when you tried your code?
Also see perlre