This is David Walsh’s String.Tweetify in jQuery.
$.fn.tweetify = function() {
this.each(function() {
$(this).html(
$(this).html()
.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'$1')
.replace(/(^|\s)#(\w+)/g,'$1#$2')
.replace(/(^|\s)@(\w+)/g,'$1@$2')
);
});
return $(this);
}
$("p").tweetify();
Before:
<p>@seanhood have you seen this http://icanhascheezburger.com/ #lol</p>
After:
<p><a href="http://twitter.com/seanhood">@seanhood</a> have you seen this
<a href="http://icanhascheezburger.com/">http://icanhascheezburger.com/</a>
<a href="http://search.twitter.com/search?q=%23lol">#lol</a></p>

Comments
Hands down, Apple’s app store wins by a mile. It’s a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I’m not sure I’d want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.
It uses the default search twitter, and interesting as well if we use the default search our web/blog…
thanks^^
Ahh, you went with HTML. My thinking was “What do I use? HTML? Text? What if it’s a form? Value?” That was my frustration. Nice work!