1
Guys, I got this: I can have the following situations from a url: www.exemplo.com.br or http://exemplo.com.br or http://www.exemplo.com.br and also with HTTPS. I would like to take only the word "example". However I do not know where to start because there can be various situations as you are seeing! How do I do it?
How do I use the url in a variable? Example: var url = "www.google.com"?
– Thiago
@Thiago updated my answer.
– Sidney