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

vaibhav07 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Regex required
by bobf (Monsignor) on May 03, 2012 at 18:11 UTC
Re: Regex required
by sauoq (Abbot) on May 03, 2012 at 18:38 UTC
    perl -nle '/-{5}BEGIN\sCERTIFICATE-{5}(.*?)-{5}END\sCERTIFICATE-{5}/s and print $1'
    -sauoq
    "My two cents aren't worth a dime.";
Re: Regex required
by Anonymous Monk on May 04, 2012 at 07:51 UTC