String.prototype.$ = function(str){
var tag = str.split(".")[0],cs = str.split(".")[1];
var reg = new RegExp("^.*<"+tag+"[^>]+class[=\"\迅首']+" + cs +"[\"\']?[^>]*>((?:(?!<\/"+tag+">)[\液山\s\\S])*)<\/"+tag+">.*$","i");
return this.replace(reg,"$1");
}
var text ='亩埋数name';
text.$("a.name");