I'm trying to match some expression with regex but it's not working. I want to match a string not starting with http://www.domain.com. Here is my regex :
^https?:\/\/(www\.)?(?!domain\.com)
Is there a problem with my regex?
I want to match expression starting with http:// but different from http://site.com For example:
/page.html => false
http://www.google.fr => true
http://site.com => false
http://site.com/page.html => false
^outside a character class means "start of line", not "not"./.