This commit is contained in:
Eryk Miszczuk 2019-11-05 11:33:34 +01:00
parent 197b6fecd3
commit a9caf01342
2 changed files with 12 additions and 0 deletions

2
TaskA37/run Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python TaskA29/run.py "$@"

10
TaskA37/run.py Normal file
View 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>')