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.

Revisions

  1. Mefistophell revised this gist Nov 16, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion password.rs
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // PCI DSS standard password requirement

    fn main() {
    let regexp = "^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,20}$";
    let regexp = "/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,20}$/";
    }
  2. Mefistophell created this gist Nov 16, 2022.
    5 changes: 5 additions & 0 deletions password.rs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // PCI DSS standard password requirement

    fn main() {
    let regexp = "^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,20}$";
    }