The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
23 views

How to check whether a variable contains a url or an IP address? [closed]

I have a variable say address. I want to check the content in that variable. If it contains an IP address then It should print IP, else if it contains a url then it should print url. How can I do ...