title: How to find all occurences of string (case-insensitive) in a file, python?
body: <p>I have got the following code to find a string in a file and count the number of exact matches: </p>
  
  <pre><code>counter+=book.read().count(word)
  </code></pre>
  
  <p>What I'm trying to do is count the number of times the word (stored in the variable word – this is part of a for loop) appears, but case insensitivley. </p>
  
  <p>Does anyone know how to do this?</p>