September 2009
popholic:
popholic:
popholic:
jquery regexp
$.fn.clickUrl = function() {
var regexp = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
this.each(function() {
$(this).html(
$(this).html().replace(regexp,"$1")
);
});
return $(this);
}
4 tags
[offtopic-ish] Flickr Ramps up Triple Tag (Machine... →
Flickr: Discussing Machine tags in Flickr API →
geobloggers.com/archives/2007/01/24/offtopic-ish-flickr-r…