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 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
Get step-by-step solutions from verified subject matter experts
