--- Dan Rossi <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php