For example, I have a string "aout\>>>out\\nt\\<foo<<bar"
I'm having trouble finding regex that would find words:
"aout\>""out\\nt\\<foo""bar"
I am trying to exclude any '<' or '>' or '|' characters that are not escaped with '\'.
Right now, I have [^ \t\n]+ to give me all "words" without <>|, but I want to exclude the part of the string that has the expression (?:(?<!\\)[<>|])+ (any non-negated <>|). Is there a way to combine these two expressions?