import re
groupRegex = re.compile(r'(\d\d\d).(\d\d\d)-(\d\d\d\d)')
print(groupRegex.findall('Cell: 514.552-2345 Work: 512-323-5543'))
[('514', '552', '2345'), ('512', '323', '5543')]
Why doesn't it return [('514', '552', '2345')] and not the "Work" phone number? The period in this instance is acting like a hyphen. Please explain in the most basic way, thanks.