Expresiones réguliers par.
const expresiones = {
usuario : /^[a-zA-Z0-9\_\-]{4,16}$/,
nombre : /^[a-zA-ZÀ-ÿ\s]{1,40}$/,
password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])([A-Za-z\d$@$!%*?&]|[^ ]){8,15}$/,
email : /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/,
phone : /^\d{7,14}$/
}
Horrible Hedgehog