Last active
November 16, 2022 11:58
-
-
Save Mefistophell/75dd7a57cf46b6e751e4950e12145a23 to your computer and use it in GitHub Desktop.
Password regexp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PCI DSS standard password requirement | |
fn main() { | |
let regexp = "/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,20}$/"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment