I want a snippet that check if the website link is valid. For example:
www.example
returns FALSE
www.example.com
returns TRUE
www.example.co. uk
returns TRUE
www.lol.lol.lol .lol
returns FALSE
lol.example.com
returns TRUE
But how can i check that?
www.example
returns FALSE
www.example.com
returns TRUE
www.example.co. uk
returns TRUE
www.lol.lol.lol .lol
returns FALSE
lol.example.com
returns TRUE
But how can i check that?
Comment