kouki0196
02-09-2005, 03:25 PM
Hi there,
I am looking for a REGEX that will help me parse a URL and extract just the domain. The pattern would be
//0 [http:// or https://] +
//1 [www or subdomain].[?subdomain].domain.[TLD][?:port] +
//2 [path (any characters ... doesn't matter]
The returned match would be //1
Thanks a bunch!
I am looking for a REGEX that will help me parse a URL and extract just the domain. The pattern would be
//0 [http:// or https://] +
//1 [www or subdomain].[?subdomain].domain.[TLD][?:port] +
//2 [path (any characters ... doesn't matter]
The returned match would be //1
Thanks a bunch!