Reputation:
So I'm going to get a URL from a form and I want to make sure that only ones that have a valid public tld
in them are accepted (so that http://google.com
is accepted, but not http://google.notatld
). How would I do this?
Upvotes: 2
Views: 441