See it in action:
match_obj = re.search("^(?!OK|\\.).*", item)
Don’t forget to put .*
after negative look-ahead, otherwise you couldn’t get any match
See it in action:
match_obj = re.search("^(?!OK|\\.).*", item)
Don’t forget to put .*
after negative look-ahead, otherwise you couldn’t get any match