Skip to main content

customRegexp

A custom regexp expression.

const validator = new JustValidate('#form');

validator.addField('#regexp', [
{
rule: 'customRegexp',
value: /[a-z]/gi,
},
]);

Demo