I'm trying to match a string that looks something like this:
<$Fexample text in here>>
with this expression:
<\$F(.+?)>{2}
However, there are some cases where my backreferenced content includes a ">", thus something like this:
<$Fexample text in here <em>>>
only matches example text in here <em
in the backreference. What do I need to do to conditionally return a correct backrefernce with or without these html entities?