Regex Selector for jQuery
James Padolsey’s simple extension to jQuery’s attribute selectors that enables regular expressions to be used for narrowing a results set. Here’s a couple of examples:
// Find all elements whose ID starts with a vowel:
$(':regex(id,^[aeiou])');
// Find all DIVs with classes containing digits:
$('div:regex(class,[0-9])');
Can also be used to query CSS styles and data strings. (via Mark Perkins)