title: Regex - Match Last Occurrence
body: <p>I have a text file full of names, I want to match them all via Regex.</p>
  
  <p>Each name ends with the following text: fsa fwb fcc, eg:</p>
  
  <pre><code>"&gt;Dave Smith\u0012\/a&gt;\u0012\/div&gt;\u0012div class=\"fsa fwb fcc
  </code></pre>
  
  <p>I want to use the following expression to match the names:</p>
  
  <pre><code>"""&gt;.+?""fsa fwb fcc"
  </code></pre>
  
  <p>AKA match all text from <strong>"></strong> up to <strong>fsa fwb fcc</strong>, I can then parse the excess matched myself.</p>
  
  <p>However as "> occurs throughout the file, it starts matching from much earlier. I have always wondered how to match from the LAST occurance of something, in this case, <strong>"></strong>, up to the end specified.</p>