Re: strip urls

From: Date: Mon, 11 Sep 2006 14:27:44 +0000
Subject: Re: strip urls
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241590@lists.php.net to get a copy of this message
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

« previous php.general (#241590) next »