(appendCsrfToken).+(\.do\?\w)
line matches like ...
document.forms[0].action = appendCsrfToken("search.do?lname=Smith");
I would like to find lines that have a .do? part .do? but do not have appendCsrfToken . For instance...
document.forms[0].action = "search.do?lname=Smith";
I thought the following negation would work, but I don't get any matches when I test it
(^appendCsrfToken).+(\.do\?\w)
How to cancel appendCsrfToken correctly to get the match I'm looking for?
source share