I have a string with the following information.
$myString = "This is my example string please. Please visit
http://www.mylink.com . More example text goes here. another link
http://www.link2.com . more text.. blah..";
What I'm wanting is a function to return the following string :
$myString = This is my example string please. Please visit <a
href'http://www.mylink.com'>link</a> . More example text goes here.
another link <a href='http://www.link2.com'>link</a> . more text.. blah..";
Each string may contain 0 or more http:// instances. The function would
only parse on an http:// match.
I know this could be done with regular expressions, but I'm not sure how
to insert the modified data back into the original string at the correct
location.
Any help would be appreciated.
Thanks,
--
_______ - ----------------------------------------------/-//- -
|: | (_) o jesse @ jesseward . com
|. |____ __
| | :|(__)
|_______| .| - -------------------------- -- - - -
|_____|