diff options
Diffstat (limited to 'challenge-110/roger-bell-west/python/ch-1.py')
| -rwxr-xr-x | challenge-110/roger-bell-west/python/ch-1.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-110/roger-bell-west/python/ch-1.py b/challenge-110/roger-bell-west/python/ch-1.py new file mode 100755 index 0000000000..ff7e397315 --- /dev/null +++ b/challenge-110/roger-bell-west/python/ch-1.py @@ -0,0 +1,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) |
