I am trying to do some stuff with replacing String containing some URL to a browser compatible linked URL.
My initial String looks like this :
\"hell
For anybody who is searching a more robust solution I can suggest the Twitter Text Libraries.
Replacing the URLs with this library works like this:
new Autolink().autolink(plainText)