Parsing header lines of an email message

Q

How write a regular expression to capture all header lines from an email message like this:

✍: Guest

A

Here is the regular expression to parse all header lines line from emails to:

The multiple lines "m" modifier should be used here:

Click the button to test this regular expression here online:

2013-02-01, 2297👍, 0💬