aboutsummaryrefslogtreecommitdiff
path: root/challenge-110/roger-bell-west/python/ch-1.py
blob: ff7e39731559522dbb77bf22c36e9d1070f154f3 (plain)
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/python3

import fileinput
import re

pn=re.compile("^ *(\+[0-9]{2}|\([0-9]{2}\)|[0-9]{4}) [0-9]{10} *$")
for line in fileinput.input():
  line=line.rstrip()
  if re.match(pn,line):
    print(line)