I've been searching for a while trying to solve what I need done. It's pretty simple. I have a blob of text in $message and I want to just remove all pieces of text starting with http so I have no links.
$message = ereg_replace("(?:[hH][rR][eE][fF]\s*=)(?:[\s""']*)(?!#|[Mm]ailto|[lL]ocation.|[jJ]avascript|.*css|.*this\.)(.*?)(?:[\s>""'])", "", $message);
I found that lil regex somewhere and wanted to adapt it, but I also want it reviewed here to see some thoughts on the matter. All ideas wanted!