nhoizey’s avatarnhoizey’s Twitter Archive—№ 9,394

  1. domain = url.replace(/^(https?:\/\/)(.+\.)?([^\.\/]+)\.([^\.\/]+)\/.*$/, '$3'); #js #regex