|Keep It Simple, Stupid|
Re: A demanding parserby Juerd (Abbot)
|on Jan 25, 2002 at 16:43 UTC||Need Help??|
Is there any way of avoiding the external module and catch an arbitrary number of nested parentheses with a "normal" Regex? I know that the Owl book says it can't be done, but I would like to put my mind at rest on this issue.
It depends on what you call a "normal" regex. If normal means without any perl specific things, it can not be done. But if you don't mind a perl specific regex, perlre has the solution:
The following pattern matches a parenthesized group: