Hey all,

I am quite horrible when it comes to regexps, but I have a string that
contains a complete url, like:
http://www.domain.com/this/is/it.html

And I need to strip everything but the domain so that I am left with:
www.domain.com

Can anyone help me out?

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to