jQuery.validator.addMethod("regexpValidator",function(value,element,param){return param.test(value);});