Validate, custom regular expression?
Does anyone know if it is possible to use your own regular expression for fields with the JQuery Validation plugin?
I have previously used Live Validation (standalone) which allows you to do this kind of thing:
- var loginpass = new LiveValidation('loginpass');
- loginpass.add( Validate.Format, { pattern: /^[A-Za-z\d]+$/i } );