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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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