Hands-on task
This task is step 19 of the course “Regular expressions”
Phone numbers
From /root/contacts.txt extract phone numbers in the format +1-XXX-XXX-XXXX into /root/phones.txt.
What you'll practise:
- grep
- regex
- counting quantifier
- escaping
- phone numbers