Return to Snippet

Revision: 14188
at May 22, 2009 10:07 by smoover


Initial Code
$string = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $string);

Initial URL

                                

Initial Description

                                

Initial Title
Remove URLs from String

Initial Tags
url, regexp

Initial Language
PHP