Mega Code Archive
Categories
/
Php
/
Strings
Back-reference parenthesized substrings
$url = "rntsoft (http://www.rntsoft.com)"; $url = ereg_replace("http://(([A–Za–z0–9.\-])*)", "
\\0
",$url); print $url; ?>