From the course: Bash Patterns and Regular Expressions

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Challenge: Create a regex to find telephone numbers

Challenge: Create a regex to find telephone numbers - Bash Tutorial

From the course: Bash Patterns and Regular Expressions

Challenge: Create a regex to find telephone numbers

(upbeat music) - [Instructor] In this challenge, I want you to use the contacts.csv file in the chapter six directory of the exercise files. Using grep, create a regular expression that matches all telephone numbers in the file. There are four different formats. For each phone number, print it on the screen once per line. Try not to use Google to find the answer to this challenge. Work through it with the knowledge you've gained in this course.

Contents