diff --git a/TaskD05/Makefile b/TaskD05/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskD05/run b/TaskD05/run new file mode 100644 index 0000000..02ad573 --- /dev/null +++ b/TaskD05/run @@ -0,0 +1,8 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin.readlines(): + print((re.sub('(([\W]*[\w\d]+[\W]+[\w\d]+[\W]+)([\w\d]+)(.*$))', lambda m: m.group(2)+'x'*len(m.group(3))+m.group(4), line)).strip('\n')) +