|There's more than one way to do things|
Matching a pattern which resides within round bracketsby jbl_bomin (Acolyte)
|on Nov 26, 2008 at 21:57 UTC||Need Help??|
jbl_bomin has asked for the
wisdom of the Perl Monks concerning the following question:
I ran into something which I thought should be easy, but has stumped me. I'm trying to match data within a round bracket. For example, take the following string:
Now here's the regex I'm using to extract this data:
But this doesn't seem to work. For some reason It's not escaping the brackets correctly. I've tried this as well...
But no good. when I only escape the first bracket with [(], I seem to be getting somewhere, but as soon as I finish it with [)], it's broken again. Many thanks and blessing be upon you.~~UPDATE~~
Alright, lemme try this again. The best way I can explain this is with some working (or should be working) code:
The IF statement has a regex that should be working, returning output as follows:
However, Dumper doesn't return anything.