Task A37
This commit is contained in:
parent
197b6fecd3
commit
a9caf01342
2
TaskA37/run
Normal file
2
TaskA37/run
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python TaskA29/run.py "$@"
|
10
TaskA37/run.py
Normal file
10
TaskA37/run.py
Normal file
@ -0,0 +1,10 @@
|
||||
import sys
|
||||
import re
|
||||
|
||||
regex = re.compile('^((\+|0)([0-9]{2})) ([0-9]-[0-9]{3}-[0-9]{3}|[0-9]{3}-[0-9]{2}-[0-9]{2})$')
|
||||
|
||||
for line in sys.stdin:
|
||||
if regex.match(line.replace('\n', '')):
|
||||
print(regex.match(line.replace('\n', '')).group(3))
|
||||
else:
|
||||
print('<NONE>')
|
Loading…
Reference in New Issue
Block a user