From f53bd075872e583d951bc265547dee7168dcd09e Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 3 Oct 2023 15:16:41 -0400 Subject: [PATCH] New regex. No-Issue Signed-off-by: James Tanner --- dev/community_scripts/cleanup_namespaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/community_scripts/cleanup_namespaces.py b/dev/community_scripts/cleanup_namespaces.py index d59ff95077..80a2c326a0 100644 --- a/dev/community_scripts/cleanup_namespaces.py +++ b/dev/community_scripts/cleanup_namespaces.py @@ -15,7 +15,9 @@ def strip_number_from_string(input_string): - match = re.search(r'(\D+)(\d+)$', input_string) + #match = re.search(r'(\D+)(\d+)$', input_string) + #match = re.search(r'([\w\d_]*)(\d+)$', input_string) + match = re.search(r'([\w_]*[A-Za-z_])(\d+)$', input_string) if match: prefix = match.group(1) number = match.group(2)