1 Comment

The provided solution and output do not include the phone number with parentheses. I used the following phone pattern instead:

r'(\({,1}\d{3}\){,1}[\s.-]\d{3}[\s.-]\d{4})'

Expand full comment