|XP is just a number|
regexp for finding all function callsby marksman (Novice)
|on Jul 07, 2009 at 21:21 UTC||Need Help??|
marksman has asked for the
wisdom of the Perl Monks concerning the following question:
I'm writing a Perl script to read in Perl code and extract all calls to Mod::func().
Mod::func() might take any number of arguments with strings and funny characters and newlines and such.
Right now, I have this regexp:
It works well, except that calls like this break it:
Mod::func( ")" );
Namely, strings that have unbalanced parentheses.
Any advice on how to improve this regexp, or another course to pursue?