Gets all URLs that matchs a pattern using firebug console and jQuery

var pattern = /^\/jqueryrain/;
jQuery('a').each(function () {
	var href = jQuery(this).attr('href');
	if (href != undefined && href.match(pattern)) {
		console.log(href);
	}
})

Leave a Reply