Skip to content

Instantly share code, notes, and snippets.

@Mefistophell
Last active November 16, 2022 11:58
Show Gist options
  • Save Mefistophell/75dd7a57cf46b6e751e4950e12145a23 to your computer and use it in GitHub Desktop.
Save Mefistophell/75dd7a57cf46b6e751e4950e12145a23 to your computer and use it in GitHub Desktop.
Password regexp
// 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