my string may contain the Regex pattern :\d\dfalse where the :\d\d is just the trailing end of a timestamp and I want to check that. If I find it, I will do a re.sub and change it. Example value: :57false For some reason this is not working although I can see file_content string does contain it. bugpatt = re.compile(r":\d\dfalse") if re.match(bugpatt,file_content): print("CANCEL REGEX FOUND dig dig colon false") else: print("WHY NO CXL BUG FOUND???") Any idea why this is not working? Continue reading...