I would like to parse the servername to get the base domain or atleast
x.com, x.org, x.net, etc. from something like www.x.com.

Can someone give me a regex for that?

I guess the scenarios could be as follows:

x.com
www.x.com
host.x.net
beta.x.org

I think what I want is the value of the left and right of the last dot.

thanks,
fw


-----------------------------------------
eMail solutions by 
http://www.swanmail.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to