I want to match all lines in a test report, which contain words \'Not Ok\'. Example line of text :
\'Test result 1: Not Ok -31.08\'
I tried
You could simply use,
if in str: print('Found keyword')
Example:
if 'Not Ok' in input_string: print('Found string')