Skip to content

Instantly share code, notes, and snippets.

View aysesenses's full-sized avatar
🎯
Focusing

Ayşe ŞENSES aysesenses

🎯
Focusing
  • Turkey
View GitHub Profile
@gokmenbayram
gokmenbayram / PasswordRegex.kt
Created February 22, 2022 10:06
Password Regex Extension
private val passwordRegex = Pattern.compile("^" +
"(?=.*[0-9])" + // En az bir rakam
"(?=.*[a-z])" + // En az bir küçük harf
"(?=.*[A-Z])" + // En az bir büyük harf
"(?=.*[a-zA-Z])" + // Herhangi bir harf
"(?=.*[@#$%^&+=])" + // En az bir özel karakter
"(?=\\S+$)" + // Boşluk yok
".{8,}" + // En az 8 karakter
"$")