Case Insensitive jQuery :contains Selector

This is useful because for some reason the :contains selector in jQuery is not case-insensitive. BTW the code below works with jQuery 1.3.

jQuery.expr[':'].contains = function(a,i,m){
return jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase())>=0;
};