You are viewing a single comment's thread. Return to all comments →
Python 3
import re for _ in range(int(input())): number = re.match(r'(\d{1,3})[-\s](\d{1,3})[-\s](\d{4,10})', input()) print(f'CountryCode={number.group(1)},LocalAreaCode={number.group(2)},Number={number.group(3)}')
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 →
Python 3