in reply to Regex problem

Forget this question, I figured out that replacing the outer brackets with parentheses was the appropriate thing to do. Sorry

Replies are listed 'Best First'.
Re^2: Regex problem
by AnomalousMonk (Archbishop) on Jul 19, 2011 at 18:49 UTC

    Oftentimes YAPE::Regex::Explain is helpful for figuring out just what a regex is doing (as opposed to what you think it's doing).