“Validação de senha com expressão regular em JavaScript” Respostas de código

Senha regex javascript

var strongRegex = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})");

RegEx	Description
^	The password string will start this way
(?=.*[a-z])	The string must contain at least 1 lowercase alphabetical character
(?=.*[A-Z])	The string must contain at least 1 uppercase alphabetical character
(?=.*[0-9])	The string must contain at least 1 numeric character
(?=.*[!@#$%^&*])	The string must contain at least one special character, but we are escaping reserved RegEx characters to avoid conflict
(?=.{8,})	The string must be eight characters or longer

by- Nic Raboy
Wicked Whale

Validação de senha com expressão regular em JavaScript

var strongRegex = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})");
Stupid Sardine

Respostas semelhantes a “Validação de senha com expressão regular em JavaScript”

Perguntas semelhantes a “Validação de senha com expressão regular em JavaScript”

Mais respostas relacionadas para “Validação de senha com expressão regular em JavaScript” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código