Re: strip urls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You may try using regular expressions for that. Something like preg_replace("http:\/\/.*\s","",$your_var). That's a simple example, but you can change to suit your needs, check the online help for more info about.

HTH,

Mariano.

Merlin wrote:
Hi there,

I am trying to strip URL's out of a text. There is a function for this in php, but I can't find it anywhere. Can sombody help?

Regards,

Merlin




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/443 - Release Date: 11/09/2006

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux