You need to escape comments and strings, too. Try this one:
bum () { // :} if (d) { e++; } else { f = g + h; } print "ho \" :\}"; /* if (hi) { */ if (ho) { print 'hee \\\' :}'; } }
In reply to Re: How do I match/extract a function from a JavaScript file?
by ForgotPasswordAgain
in thread How do I match/extract a function from a JavaScript file?
by Incognito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |