if \'string1\' in line: ...
... works as expected but what if I need to check multiple strings like so:
if \'string1\' or \'string2
if 'string1' in line or 'string2' in line or 'string3' in line:
Would that be fine for what you need to do?