0

I'm trying to do some basic form validation using Regex. I want it to match (therefore allow) submissions which DON'T include URLs.

This has been working well for single-line submissions: ^((?!https|http|www).)*$

But it seems to also be blocking any multi-line submissions at all, and I can't figure out why!

I've also attempted (.*)\s*\n?\s*(?!(https|http|www.)) which worked in a regex tester, but not on my site for some reason.

Thanks

0 Answers0