I'm using the Jquery Validate plugin to validate facebook usernames, and by default it can have letters, numbers, and periods.
Ex: joao, joao22, joao.maluco22
How to validate this with jQuery Validate?
The default methods are as follows:
jQuery.validator.addMethod("lettersonly", function(value, element) {
return this.optional(element) || /^[a-z]+$/i.test(value);
}, "Somente letras");