You are viewing a single comment's thread. Return to all comments →
Something something like this:
import re regex = re.compile(r'(\d+)(?:-| )(\d+)(?:-| )(\d+)') n = int(input()) for _ in range(n): m = regex.findall(input())[0] print('CountryCode={},LocalAreaCode={},Number={}'.format(*m))
Seems like cookies are disabled on this browser, please enable them to open this website
Split the Phone Numbers
You are viewing a single comment's thread. Return to all comments →
Something something like this: