Forum Moderators: coopster
google.com
www.google.com
http://www.google.com
http://google.com
http://example.google.com
$text = preg_replace("/(^¦\s)(http:\/\/)?(www\.)?[\.0-9a-zA-Z\-_~]+\.(com¦net¦org¦info¦name¦biz¦.+\.\w\w)((\/)?[0-9a-zA-Z\.\-_~#]+)?\b/ie","",$text); The problem is that it is also taking out the plus symbol (+) from the text and anything written after an & gets removed.
e.g.
Testing + hello & blahbecomes
Testing helloThanks