> --- 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 >
Or just str_replace(). No need for regular expressions. http://www.php.net/manual/en/function.str-replace.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php