example string:
hello ! < and ! world>, and ! letter and [another ! letter] here.
Let's say, I want to split the sentence by ! character if it is not between < and >and also not between { and }.
I have been using :
str.split(/\!+(?=(?:(?:[^<]*"){2})*[^>]*$)/g);
to split if not between < and > , but how to add the another clause { and } too?  Putting | doesnt solve, because it might then match blended < and }..
 
    