title: Regular expression match starting at the end of a Sublime Text "view"
body: <p>I concocted the following regular expression, that is supposed to give me all text in the view that comes before the second to last <code>}</code>:</p>
  
  <pre><code>region = currentView.find("(?&lt;=\\})[^\\}]+\\}[^\\}]*$", 0)
  </code></pre>
  
  <p>Sublime Text does not seem to think that <code>$</code> means "end of whatever is in the view." To be honest, I don't quite understand what Sublime Text thinks it means.</p>
  
  <p>My regular expression seems to work, as shown here on <a href="http://regexr.com?36r96" rel="noreferrer">regexr.com</a>.</p>
  
  <p>I found a workaround for my particular cirmunstance that I can live with for the moment:</p>
  
  <pre><code>regions = currentView.find_all("\}")
      if len(regions) &gt; 1:
          # stuff I am doing with regions[-2] goes here
  </code></pre>
  
  <p>but I would like to know if it is <strong>possible</strong> to match against the end of the view's content.</p>