“Memeriksa Kata Sandi Regex” Kode Jawaban

Validasi regexp untuk kata sandi yang dijelaskan

r'^
  (?=.*[A-Z])       // should contain at least one upper case
  (?=.*[a-z])       // should contain at least one lower case
  (?=.*?[0-9])      // should contain at least one digit
  (?=.*?[!@#\$&*~]) // should contain at least one Special character
  .{8,}             // Must be at least 8 characters in length  
$
Difficult Dugong

Kata Sandi Regex

^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$
Mobile Star

Kata Sandi Regex

"^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$"
Sparkling Sardine

Memeriksa Kata Sandi Regex

// minimum 8 characters , minimum one specil charecter , minimum one uppercase and one lowercase letter required
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/
Nazmul Hassan

Jawaban yang mirip dengan “Memeriksa Kata Sandi Regex”

Pertanyaan yang mirip dengan “Memeriksa Kata Sandi Regex”

Lebih banyak jawaban terkait untuk “Memeriksa Kata Sandi Regex” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya