Question: (Python & Regular Expressions) 7. Write regular expressions that will match the following social security number formats: (a) 111111111 (b) 111-11-1111 (c) Either of the

 (Python & Regular Expressions) 7. Write regular expressions that will match

(Python & Regular Expressions)

7. Write regular expressions that will match the following social security number formats: (a) 111111111 (b) 111-11-1111 (c) Either of the above formats will match. Hint: Use an or operator in your RE. (d) Either of the above formats but on a line by itself. Eg. "123-45-6789" should match, but "My son is 123-45-6789" will not match

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 Databases Questions!