Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?:\/(C|ST|L|O|OU|CN|emailAddress)=([^\/]+))?
/
g

Description

regex to capture fields from the output of openssl x509 -in yout_crt_file.crt -issuer -noout

Submitted by Florian Sievers - 8 years ago