Code: Select all
$text = preg_replace('/\b_([\S ]+?)_\b/','<u>\1</u>',$text);
does not honor URLs that may not be <u>'ified as
the URL
http://en.wikipedia.org/wiki/Statler_%26_Waldorf
that will end up
http://en.wikipedia.org/wiki/Statler</u>%26_Waldorf
as to be seen in
http://daniel-lange.com/archives/9-Wiki ... tions.html
(check the Statler and Waldorf link)