From 1e2afab2c3af976b2146eab36b1392bac4d5a728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mongu=C3=AD?= Date: Sun, 28 Jun 2020 20:36:18 -0500 Subject: [PATCH] challenge 03 solved --- src/main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 3f1ef43..9ee8a20 100644 --- a/src/main.py +++ b/src/main.py @@ -1,9 +1,16 @@ # Resolve the problem!! +import re def run(): - # Start coding here - + # Start coding here + with open('encoded.txt', 'r', encoding='utf-8') as f: + pattern = re.compile(r'[a-z]') + for line in f: + match = pattern.findall(line) + print (''.join(match)) if __name__ == '__main__': run() + +