passValidator static method
Implementation
static bool passValidator(String pass) {
if (pass != "" &&
pass.contains(r'^(?=.*?[a-z])(?=.*?[0-9]).{5,}$') &&
pass.length > 5) {
return true;
// 5 char and number
//******************
//r'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#\$&*~]).{5,}$'
// one special , one capital , one number, number length > 4
// Vignesh123! : true
// vignesh123 : false
// VIGNESH123! : false
// vignesh@ : false
// 12345678? : false
}
return false;
}