In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("John Vanderbeck") wrote:

> 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

Relax, you don't need a regex.  See <http://php.net/parse_url>

-- 
CC

-- 
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