1

I want to validate a form field, by preventing the user from entering the domain name with www or http so I wrote a regular expression as follows.

/^(www|http)/

What I want is the opposite of the written regular expression. So that I can have the expected result.

Expected result:

How to get the opposite of the regular expression

Dulara Malindu
  • 1,477
  • 4
  • 18
  • 37

0 Answers0