Regular Expression Not Match String Containing Words

In regular expression, writing rule for except some character is easy but sometimes we need some string which does not contain the word which we don’t want.

(?!www|http)

with this rule you can do it.