Skip to content
Snippets Groups Projects
Verified Commit 6c287541 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix: correct regular expression syntax

parent cc24b3a2
No related branches found
No related tags found
No related merge requests found
Pipeline #192756 passed with warnings
......@@ -32,7 +32,7 @@ if not path.exists(full_log_dir_name):
rename(absolute_file_name, full_log_absolute_name)
session_ids = set()
regex_session_id = "(?<=\s\[)\w+(?=\]\s+\S+\s+:)"
regex_session_id = r"(?<=\s\[)\w+(?=\]\s+\S+\s+:)"
file = open(full_log_absolute_name, "r")
for line in file:
......
......@@ -33,8 +33,8 @@ rename(absolute_file_name, full_log_absolute_name)
session_ids = set()
thread_ids = set()
regex_session_id = "^.*]:\s\d\s\[(.*?)\].*$"
regex_thread_id = "^.*\[(.*?)\]:.*$"
regex_session_id = r"^.*]:\s\d\s\[(.*?)\].*$"
regex_thread_id = r"^.*\[(.*?)\]:.*$"
file = open(full_log_absolute_name, "r")
for line in file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment