From 00391d0376dbc07812fa02d7e99f37a0eed549e5 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Mon, 20 Jan 2025 20:39:34 +0000 Subject: [PATCH] hotfix: 208A regex --- solutions/python/208A.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/python/208A.py b/solutions/python/208A.py index 332aaf7..f9685ec 100644 --- a/solutions/python/208A.py +++ b/solutions/python/208A.py @@ -1,7 +1,7 @@ import re s = input() -s = re.sub(r"WUB*", " ", s) -s = ' '.join(s.split(' ')) +s = re.sub(r"WUB", " ", s) +s = ' '.join([c for c in s.split(' ') if c != '']) print(s)