jzaefferer/jquery-validation — pull request #789 by pagliaccio (2013-06-23 20:25:49+00:00)
Title: add regExpr method

add regExpr method

regExpr:function(value,element,param){
return this.optional(element) || param.test(value);
},

$('#form').validate({
rules:{
field:{
regExpr:/\w/
},
messages:{
field:'only alphabetics char'
}
})