title: JS Negative Lookbehind
body: <p><a href="https://regex101.com/r/ZYsdyT/1" rel="nofollow noreferrer">https://regex101.com/r/ZYsdyT/1</a></p>
  <p>Pattern: <code>(?&lt;!{)&lt;(\d+)&gt;[^&lt;&gt;]*&lt;\/\1&gt;(?!})|{[\w]*}</code></p>
  <ol>
  <li>matches: <code>&lt;n&gt;programming&lt;/n&gt;</code></li>
  <li>matches: <code>{sometext}</code></li>
  <li>matches: <code>&lt;n&gt;{programming}&lt;/n&gt;</code></li>
  <li>no match: <code>{&lt;n&gt;programming&lt;/n&gt;}</code></li>
  </ol>
  <p>The above regex does work, the challenge I am having is that negative lookbehind isn't supported in the version of JS i am using. Is there anything I can do to make sure that example 4 above doesn't match without using a negative look behind? How can i adjust the regex? Thank you.</p>