Is there a way to invert a RegEx selection?
I have the following string example:
Hello World
<h1>{{{title}}}</h1>
No HTML
<p>{{description}}</p>
{{#each projects}}
<h2>{{#name}}</h2>
<bockquote><p>{{#quote}}</p></bockquote>
<p>{{#description}}</p>
<pre><code class="lang-javascript">{{{#code}}}</code></pre>
{{/each}}
I want to select the text which is NOT surrounded by HTML-Tags OR Handlebar-Tags.
My approach was to select the HTML/Handlebar-Tags and then invert the selection. The RegEx for this looks like:
/<(.*)>|{{.*}}/
But I just cant find a way to invert this. Is there another way?