Split the Phone Numbers

  • + 0 comments
    import re
    
    [print(re.sub(r"(\d{1,3})[\-\s](\d{1,3})[\-\s](\d{4,10})", r"CountryCode=\1,LocalAreaCode=\2,Number=\3", input())) for _ in range(int(input()))]