Question: Regular expression and explain your answer. a . [ Points 5 ] Write a regex to match filenames that end with . txt or .

Regular expression and explain your answer.
a.[Points 5] Write a regex to match filenames that end with .txt or .pdf or .rtf.
b.[Points 5] Write a regex to match dates in the format DD-MM-YYYY or DD/MM/YYYY.
c.[Points 10] Write a regex to extract US phone numbers from a text. The phone numbers can be in the format (123)456-7890 or 123-456-7890

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!