|Syntactic Confectionery Delight|
Recursive Regular Expression Helpby me (Initiate)
|on Apr 12, 2008 at 02:12 UTC||Need Help??|
me has asked for the wisdom of the Perl Monks concerning the following question:
I’m trying to capture the entire “submitme()” function from the word “function” all the way to the closing curly bracket of just that function.
I’ve come across a recursive pattern that will capture a pair of outer brackets and all nested ones, but once you add the beginning text - the word ‘function’, the function name, and the opening and closing argument brackets - problems ensue.
This may not be that hard, but I've had a heck of a time writing the right pattern.
Any help (an example pattern) would be greatly appreciated.