❔ What's the best way to test a URL that's it's valid?
I have a situation where the user can enter a URL if they so choose, but if they do, I want to ensure it's valid. How would I do that? Should I use a regular expression test or something else? Normally, this will be a website on the Internet in my case.