https://stackoverflow.com/questions/11550790/remove-hostname-and-port-from-url-using-regular-expression
url = url.replace( /^[a-zA-Z]{3,5}\:\/{2}[a-zA-Z0-9_.:-]+\//, '' );
No comments:
Post a Comment