For the record, here are some urls that wouldn't be handled properly with your regex:
http://proxy.aol.com:8080/ http://user:pass@yahoo.com/login
In reply to Re^2: Extracting a domain name from a url
by rhesa
in thread Extracting a domain name from a url
by abachus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |