I would like to test a url that does NOT end in .html
This is the pattern I come up with:
[/\w\.-]+[^\.html$]
The following matches because it does not end in .html
/blog/category/subcategory/
This doesn't match because it ends in .html:
/blog/category/subcategory/index.html
However, the following does not match, although I want it to match, because it ends in .ht and not .html
/blog/category/subcategory/index.ht
How should I change my pattern?