I have the following RegEx
http://example.com - Match http://www.example.com - Does not match
It looks like
golang does not support negative lookahead. How can I rewrite this RegEx to work on
I'm not coding using golang, I'm using Traefik that accepts a Regex (golang flavor) as a config value, so basically I have this:
regex = "^https://(.*)$" replacement = "https://www.$1"
What I want is to always add www. to the URL, but NOT if the URL has it already, otherwise it would become www.www.*