regex Obtenha apenas o nome de domínio da URL
^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)
/// Extract result only domain name and subdomain
https://play.google.com/store/apps/details?id=com.skgames.trafficracer%22
play.google.com
http://mplay.google.co.in/sadfask/asdkfals?dk=10
mplay.google.co.in
http://lplay.google.co.in/sadfask/asdkfals?dk=10
http://play.google.co.in/sadfask/asdkfals?dk=10
play.google.co.in
http://tplay.google.co.in/sadfask/asdkfals?dk=10
tplay.google.co.in
http://www.google.co.in/sadfask/asdkfals?dk=10
google.co.in
www.google.co.in/sadfask/asdkfals?dk=10
google.co.in
http://user:[email protected]/?a=b#asdd
google.com
https://www.compzets.com?sd=10
compzets.com
www.compzets.com?asd=10
compzets.com
Tung