Incognito has asked for the wisdom of the Perl Monks concerning the following question:
we want to match the entire first function... or actually we just want the ability to write a regex that matches any (not too complex is okay) valid function...foo (a, b, c) { if (c) { a++; } else { b--; } print "hi"; } fum (d, e, f, g, h) { if (d) { e++; } else { f = g + h; } print "ho"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I match/extract a function from a JavaScript file?
by boo_radley (Parson) on Oct 06, 2001 at 01:16 UTC | |
|
Re: How do I match/extract a function from a JavaScript file?
by ForgotPasswordAgain (Vicar) on Sep 30, 2007 at 17:53 UTC | |
by Shakya (Initiate) on Oct 03, 2007 at 17:26 UTC | |
|
Re: How do I match/extract a function from a JavaScript file?
by Shakya (Initiate) on Sep 30, 2007 at 17:35 UTC | |
by erroneousBollock (Curate) on Sep 30, 2007 at 17:43 UTC |