title: Is greedy "or" group in regex exists?
body: <p>I have an automatically generated regular expression, which basically is one big "or" group like so:</p>
  
  <pre><code>(\bthe\b|\bcat\b|\bin\b|\bhat\.\b|\bhat\b)
  </code></pre>
  
  <p>I've noticed that in case of</p>
  
  <pre><code>hat.
  </code></pre>
  
  <p>It would match "hat" only, not "hat." as I want. Is there a way to make it more greedy?</p>
  
  <p><strong>UPDATE:</strong> forgot about word boundaries, sorry for that.</p>