I have a form that users will use to enter text.
I want to delete all URLs inside the text.
Will the regex below do it?
eregi_replace(https?://(www)?[ \n\r\t]$, "", $text)
eregi does a case-insensitive match
https? matches http or https
(www)? means url has a possible www in it
[ \n\r\t]$ means a space at the end of the url
Is there something I got wrong, or left out entirely?
Thanks.
Richie.