I trying to construct a regex to extract a domain given a url .
for eg.
http://www.abc.google.com/
http://abc.google.com/
https://www.abc.google.com/
http://abc.google.com/
should give
abc.google.com
any hellp verymuch appreciated.
Thanks