I'm trying to find text that contains a < or > between { }. This is within HTML and I'm having trouble getting it to be "ungreedy".
So I want to find text that matches these strings:
{test > 3}
{testing >= 3 : comment}
{example < 4}
I've tried a number of regular expressions, but the all seem to continue past the closing } and including HTML that has < or >. For example, I tried this regex
{.*?(<|>).*?}
but that ends up matching text like this:
{if true}<b>testing</b>{/if}
It seems pretty simple, any text between { } that contain < or >.