mardi 4 août 2015

Best way to get URL without subdomains in JavaScript

I have some strings in JavaScript:

Example: http://ift.tt/1dTOlMV

I'm looking for a regex (or similar) expression that can remove the subdomains from the string that leaves: http://domain.com

Aucun commentaire:

Enregistrer un commentaire