I want to parse our urls and make them clickable.. even if there is not http:// in front
So for example if we have
$text = "Hello this is a sample.com so go and parse that and also http://www.sample.com"
It would make sample.com and http://www.sample.com both clickable. How would I do that with regular expressions in php?