Can someone please post a regex to extract domain from a url confirming RFC 1738 (http://www.ietf.org/rfc/rfc1738.txt)?
PROTOCOL://USERNAME:PASSWORD@DOMAINNAME:PORT/QUERYSTRING
Example:
https://abc:password@answers.yahoo.com:777/question/index?qid=20100728205639
Thanks, Sumit