I have a question but I can't seem to figure it out. I have been referenceing this article: Regular expression to match a line that doesn't contain a word?
I am trying to match a URL if the URL doesn't contain 2 dashes:
Match = /test-doc.html
Non-Match = /test-doc--help.html
I have this which works to match and non-match: /(?<a>.(?!\-\-))*\.html
But the group "a" only gets 1 letter vs everything looking back. I would want group "a" to be "test-doc" rather than just the "c" at the end.
Any suggestions would be appreciated.