Parsing header lines of an email message


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

✍: Guest


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, 0👍, 0💬