RE: [PHP] preg_replace question
| From: | Chris Shiflett | Date: | Wed, 20 Nov 2002 22:06:58 +0000 |
| Subject: | RE: [PHP] preg_replace question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125341@lists.php.net to get a copy of this message | ||
--- Dan Rossi <daniel@electroteque.org> wrote:
> some urls will have http://www. some will only have www. some
> will
> have :1023 for forced ports and they all will have /directory
> afterwards i just need domain.com for example :|
Out of curiosity, did you not read the replies to your initial
question? I recall saying this:
> Just use parse_url() instead:
>
> http://www.php.net/manual/en/function.parse-url.php
I recall seeing John Holmes say this:
> Or just str_replace(). No need for regular expressions.
>
> http://www.php.net/manual/en/function.str-replace.php
Chris