thats the thing the urls should be able to parse http:// or www or both and
i have to unfortunatly clean up a forced port and directory in the url
aswell for gethostname to work

-----Original Message-----
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:48 AM
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:

Or just str_replace(). No need for regular expressions.

---John Holmes...

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to