Given a string such as
The quick brown {{ fox }} jumped over the lazy <em>{{ dog }}</em>
I'm looking for a pattern that will match all instances of {{
not preceded by the <em>
block
Whilst the pattern /(?<!>)\{{2}/gm
will work, this is not an option for Firefox and IE flavours of JS.
I’ve done a fair bit of digging and can find a great deal of examples that almost get there but not quite. Getting a positive match for the string _>{{_
is no problem, but it’s the reverse of this that I’m looking for.
I feel like I might be heading in the wrong direction with a lookup approach like this. Am I missing something more simple here?