Last active
February 12, 2020 13:52
-
-
Save angeloped/6b066a986b8e27fe6faa991ae67646d0 to your computer and use it in GitHub Desktop.
Public and Private Key PGP Validator | RegEx
This file contains 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
/^(-----BEGIN PGP PUBLIC KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PUBLIC KEY BLOCK-----)$|^(-----BEGIN PGP PRIVATE KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PRIVATE KEY BLOCK-----)$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment