Wir bringen
Licht
in Form
Churk has hit the nail on the head. Your requirements for a “valid URL” are too lose to provide an answer. It sounds like you just want to make sure the input looks like it could possibly be a URL or host name. If that’s the case, the only thing you can really do is make sure it doesn’t contain any spaces