Mar-04-2024, 10:45 PM
(This post was last modified: Mar-04-2024, 10:45 PM by Gribouillis.)
Always use RAW strings when you create patterns for the re module, for example
if re.search(r"^\s+\Start\s\Time",el) # <-- note the r" syntaxBy the way I don't think \T is allowed in the re syntax, and \S matches other characters than S alone.
« We can solve any problem by introducing an extra level of indirection »