title: Using pdfgrep to search for sentences containing specific words
body: <p>For my statistics exam, I would like to be able to search for sentences containing specific words in our textbook (we have as a pdf file). I've downloaded the command line tool pdfgrep (grep for pdf files) </p>
  
  <p>An example:</p>
  
  <p>I would like to search for a sentence containing the two words "median" and "exponential"</p>
  
  <p>I've tried:</p>
  
  <pre><code>pdfgrep "\..*median.*exponential\." book-IntroStatistics.pdf 
  </code></pre>
  
  <p>But it does not seem to be working and just gives me large chunks of text.</p>