Say i have a string of text such as
$text = \"Hello world, be sure to visit http://whatever.com today\";
how can i (probably using regex) i
You can use regexp to do this:
$html_links = preg_replace('"\b(https?://\S+)"', '$1', $text);