Indeed, you could try something like this : string.replace(/((?:(?:http:\/\/)|(?:mailto:))([^\s]+))/, '<a href="$1" title="$2">$2</a>');
And bam! the returned value will have your http://s and mailto:s wrapped in nice links. Michel Belleville 2009/12/4 Dhruva Sagar <dhruva.sa...@gmail.com> > Of course it's possible :). All you need to do is know a little bit of > regular expressions & that's pretty much it, you could use simple javascript > as well if you like. > > Thanks & Regards, > Dhruva Sagar. > > > > > > On Fri, Dec 4, 2009 at 6:09 AM, Scott Wilcox <sc...@tig.gr> wrote: > >> Hello Folks, >> >> I'm usually pretty good at Googling and finding my own answers to >> problems, however this one has left me a little stumped. Is it >> possible either using JQuery, a plugin or standard JS to automagically >> create links for URI's within a string? >> >> I'm having a complete block trying to figure this out. >> >> Thanks for reading, >> >> Scott. >> > >