3 ms·
// don't ask me how exactly, but this gets the main domain froma hostname; This explains a lot. What I don't understand though, is why this guy, who doesn't u
by aiham 15y ago
// don't ask me how exactly, but this gets the main domain froma hostname;
This explains a lot. What I don't understand though, is why this guy, who doesn't understand basic regular expressions (the expression is also wrong), is working on the American Express website.
- danso 15y agoThe regex: // don't ask me how exactly, but this gets the main domain froma hostname; var hostArray = /([^.]+(.com))$/ LOL.