title: Match last occurrence with regex
body: <p>I would like to match last occurrence of a pattern using regex.</p>
  
  <p>I have some text structured this way:</p>
  
  <pre><code>Pellentesque habitant morbi tristique senectus et netus et
  lesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae
  ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam
  egestas &lt;br&gt;semper&lt;br&gt;tizi ouzou&lt;br&gt;Tizi Ouzou&lt;br&gt;                        
  </code></pre>
  
  <p>I want to match the last text between two <code>&lt;br&gt;</code> in my case <code>&lt;br&gt;Tizi Ouzou&lt;br&gt;</code>, ideally the <code>Tizi Ouzou</code> string</p>
  
  <p><em>Note that there is some white spaces after the last <code>&lt;br&gt;</code></em></p>
  
  <p>I've tried this:</p>
  
  <pre><code>&lt;br&gt;.*&lt;br&gt;\s*$
  </code></pre>
  
  <p>but it selects everything starting from the first <code>&lt;br&gt;</code> to the last.</p>
  
  <p>NB: I'm on python, and I'm using <a href="http://pythex.org/" rel="nofollow noreferrer">pythex</a> to test my regex</p>