this is fine but it didnt parse in just www.domain.com

-----Original Message-----
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:41 AM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_replace question


--- electroteque <[EMAIL PROTECTED]> wrote:
> how could i remove http://www. ot of a url string using
preg_replace?

No need to reinvent the wheel for this. Just use parse_url() instead:

http://www.php.net/manual/en/function.parse-url.php

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to