As our knowledge and experience with regular expressions grows, we can begin to match more and more generalized items, such as an email address. By coming up with the regex to match an email address, we need to use concepts such as grouping, ranges, repetition, literal characters, and more. This learning activity also expects you to have some knowledge of `grep` and `sort`.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create an `emails.txt` file.
Create an
emails.txt
file containing an ordered list of all customer emails.- Match all emails in `customer-data.txt`.
Use
grep
and a regular expression to match all the emails in thecustomer-data.txt
file.