title: Python regex to match a specific word
body: <p>I want to match all lines in a test report, which contain words 'Not Ok'.
  Example line of text :</p>
  
  <pre><code>'Test result 1: Not Ok -31.08'
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>filter1 = re.compile("Not Ok")
  for line in myfile:                                     
      if filter1.match(line): 
         print line
  </code></pre>
  
  <p>which should work according to <a href="http://rubular.com/" rel="noreferrer">http://rubular.com/</a>, but I get nothing at the output. Any idea, what might be wrong? Tested various other parameters, like "." and "^Test" , which work perfectly. </p>