- I want to input a string from the user and check whether it is a URL or some text , what condition should I use on the string .
- Also if the string is not a URL it is to be googled
I ve made the part where it opens the URL in the browser but I am confused with the condition, I can use
if "http://" in input
But what if the user doesn't wants to specify the protocol.