I've been trying desparately to figure out how to write a regular expression that will match any string
except a particular URL. I can't, however, figure out how to do an inverse of an expression. Can anyone tell me how I might do this? I've tried the following (example for
www.google.com):
http:\/\/...\.[^g][^o][^o][^g][^l][^e]
But it has weaknesses including the fact that any domain name starting with a "g" will not match. Can you guys point me in the right direction?