RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find PGP text
Expression
(.*)-----(BEGIN|END)([^-]*)-----(.*)
Description
This is very useful if you dont want your employees to send encrypted mail, or downloading public keys from HTTP. It also catches certficates, CSR and other useless stuff that is only used to hide data from antivirus programs and such things.
Matches
-----BEGIN PGP ENCRYPTED MESSAGE-----,-----END CERTIFICATE SIGNING REQUEST-----,-----END RSA PRIVATE KEY-----
Non-Matches
-----This is a header-----,-----Account info-----
Author Rating: Not yet rated. sebastian nielsen
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials