(appendCsrfToken).+(\.do\?\w)
matches on a String like...
document.forms[0].action = appendCsrfToken("search.do?lname=Smith");
What I would like to do is find Strings that have the .do? portion but don't have the appendCsrfToken portion. For instance...
document.forms[0].action = "search.do?lname=Smith";
I thought that the following would negation would work but I'm getting no matches when I test it
(^appendCsrfToken).+(\.do\?\w)
How do I properly negate the appendCsrfToken to get the match I'm looking for?