Helpful Information
Home
Categories
Contact us
Category: Regex Programming
Checking for a valid url
Does anyone have a good regex for checking a user submitted url?
I would like to just ensure that the format does not have the http:// and that it somewhat resembles a valid url.
I will manually be clicking on the links myself to ensure they work but really want to keep the bad data out.
Any help is truly appreciated as I am lost.
Thanks
CH...
Does anyone have a good regex for checking a user submitted url?
I would like to just ensure that the format does not have the http:// and that it somewhat resembles a valid url.
...
^[^.]+(\.[^.]+)+(/[^/]*)*$
privacy (GDPR)