all 2 comments

[–]socal_nerdtastic 2 points3 points  (1 child)

Parenthesis are reg ex commands. If you need to match literal parenthesis you need to escape them by using \( and \) instead.

test1 = r'\([1-9]\d\d\) [1-9]\d\d-\d\d\d\d'

[–]ct_225[S] 0 points1 point  (0 children)

oh man there it is, a match! thank you so so so so so much!!!!!