Skip to content

Instantly share code, notes, and snippets.

View Ibrahima-BA's full-sized avatar

Ibrahima Ba Ibrahima-BA

View GitHub Profile
@frizbee
frizbee / password_regex.md
Last active January 19, 2024 08:55
Regex for password must contain

Minimum eight characters, at least one letter and one number:

/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/

Minimum eight characters, at least one letter, one number and one special character:

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

Minimum eight characters, at least one uppercase letter, one lowercase letter and one number: