This commit is contained in:
Adam 2020-12-06 16:56:44 +01:00
parent 00b48fc78f
commit 086a27dfa3
3 changed files with 16 additions and 0 deletions

0
TaskD04/Makefile Normal file
View File

2
TaskD04/run Normal file
View File

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

14
TaskD04/run.py Normal file
View File

@ -0,0 +1,14 @@
import re
import sys
for line in sys.stdin:
line = re.sub(r'(\D*)([0-9]+)(\D+)([0-9]+).*', r'\1\2\3\5', line)
sys.stdout.write(line)