I am a relative newbie to regular expressions (although I have used them many times successfully). I want to find all the links in the document that do not end with ".html" The regular expression that I came up with is the following:
href=\"([^"]*)(?<!html)\"
In Notepad ++, my editor href=\"([^"]*)\"finds all links (and those that end with "html", and those that do not). Why does a negative lookbehind not work?
I also tried to watch:
href=\"[^"]*(?!html\")
but that didn't work either.
Does anyone help?
Cheers grovel
source
share