I have try to play around with preg_replace, but couldn't come up with a solution that fit all the exceptions
For example:
If the user enters "visit http://somewebsite.com"
(OR)
$text = "visit www . somewebsite . com";
(OR)
$text = "visit w w w dot somewebsite dot c o m";
Any idea?
Thanks in advance :)