title: Regex matching the end of a string with a word
body: <p>How do I match the end of a regular expression by a word? For example:</p>
  
  <pre><code>&lt;h1&gt;&lt;a href=...&gt;&lt;/a&gt;CONTENT&lt;/h1&gt;
  </code></pre>
  
  <p>Given that <code>&lt;h1&gt;</code> is the start tag, how do I return <code>&lt;a href=...&gt;&lt;/a&gt;CONTENT</code>?</p>
  
  <p>The expression <code>/&lt; h1&gt;(([&lt;\/h1&gt;\b])*/</code> does not seem to work</p>