Many regex engines also include the ability to create basic if-then-else statements, setting it so certain parts of the expression only match if specific parameters are met, allowing us to use a single expression to match a variety of options; this allows us more flexibility in how we write and use our expressions.
Successfully complete this lab by achieving the following learning objectives:
- Create `mailing-list-report.txt`.
Save the matched data to
- Extract the “From” and “Subject” lines from the mailing list data.
Craft a regular expression that extracts the desired data from the mailing list