^(?!www\.petroules\.com$).*$
will match any string other than www.petroules.com
. This is called negative lookahead.
[^www\.petroules\.com]
means “Match one character except w, p, e, t, r, o, u, l, s or dot”.
^(?!www\.petroules\.com$).*$
will match any string other than www.petroules.com
. This is called negative lookahead.
[^www\.petroules\.com]
means “Match one character except w, p, e, t, r, o, u, l, s or dot”.