$.validator.addMethod(\'AZ09_\', function (value) {
return /^[a-zA-Z0-9.-_]+$/.test(value);
}, \'Only letters, numbers, and _-. are allowed\');
The \- maybe wasn't working because you passed the whole stuff from the server with a string. If that's the case, you should at first escape the \ so the server side program can handle it too.
Or you can simply put at the and of the [] brackets.