Getting the domain from an url?

From: Date: Sat, 12 May 2001 22:35:44 +0000
Subject: Getting the domain from an url?
Groups: php.general 
Request: Send a blank email to php-general+get-52593@lists.php.net to get a copy of this message
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

« previous php.general (#52593) next »