Linkify some text:

Some things probably shouldn't match:

But many things should:

parseuri examples

$(function(){
  
  // jQuery is used for this example, but JavaScript Linkify doesn't require
  // any third-party libraries.
  
  $('li').each(function(){
    var that = $(this),
      txt = that.html(),
      options = {
        callback: function( text, href ) {
          href && debug.log([ text, href ]);
          return href ? '<a href="' + href + '" title="' + href + '">' + text + '</a>' : text;
        }
      };
    
    that.html( txt + ' (orig)<br/>' + linkify( txt, options ) + ' (linkified)' );
  });
  
});