If I have a paragraph with contains plain URLs (without the anchors). How can I wrap those URLs within a tags?
For example:
$string = "visit http://blabla.com to get something";
So how could I make that as:
visit <a href="http://blabla.com">http://blabla.com</a> to get something
Thanks!
Or in a function
You can ignore the $1 . It is assigned to the text matched by the regular expression. In this case, the URL.