http://www.perlmonks.org?node_id=968797


in reply to Regex required

perl -nle '/-{5}BEGIN\sCERTIFICATE-{5}(.*?)-{5}END\sCERTIFICATE-{5}/s and print $1'
-sauoq
"My two cents aren't worth a dime.";