A function to change an email address or URL into a clickable HTML hyperlink using eregi_replace.
Replacing all spaces in URL to %20
$search = preg_replace("/[^(w)|(x7F-xFF)|(s)]/", " ", $search);