Aug-07-2024, 11:28 PM
Greetings!
I'm looking for the tree specific lines in my files (see below), and I have a regex that gets me the lines but it also prints warnings in the beginning of the script '' invalid escape sequence '\s''.
I'm using Python 3.12.1
It seems a simple problem but I'm struggling with this for some reason.
Could you guys help me wiht this?
The lines actually have a lot of spaces before the Start/End/Run words for some reason when I paste them they are disappear,
I inserted hyphens instead of the white spaces.
-------------------------------- Start Time 3/6/2023 11:18:35 PM
--------------------------------- End Time 3/6/2023 12:25:24 AM
--------------------------------- Run Time 01:06:49.0905697
RegEx:
Tester_V
I'm looking for the tree specific lines in my files (see below), and I have a regex that gets me the lines but it also prints warnings in the beginning of the script '' invalid escape sequence '\s''.
I'm using Python 3.12.1
It seems a simple problem but I'm struggling with this for some reason.
Could you guys help me wiht this?
The lines actually have a lot of spaces before the Start/End/Run words for some reason when I paste them they are disappear,
I inserted hyphens instead of the white spaces.
-------------------------------- Start Time 3/6/2023 11:18:35 PM
--------------------------------- End Time 3/6/2023 12:25:24 AM
--------------------------------- Run Time 01:06:49.0905697
RegEx:
if re.findall("Start\s+Time\s+\d",el) elif re.findall("End\s+Time\s+\d",el) elif re.findall("Run\s+Time\s+\d",el)Thank you.
Tester_V