jQuery(function(){ Cufon.replace('.f-replace'); jQuery(".labelize input:text").clearingInput(); jQuery('.tweet-text').each(function(){ var text = jQuery(this).text(); var re1='((?:http|https)(?::\\/{2}[\\w]+)(?:[\\/|\\.]?)(?:[^\\s"]*))'; // HTTP URL 1 var p = new RegExp(re1,["i"]); var matches = p.exec(text); if (matches != null) { var foundURL = matches[1]; var newTxt = text.replace(foundURL, ""+foundURL+""); jQuery(this).html(newTxt); } }); });