I want to find out a string in which a particular tag does not occur, such as:
[\\w]+<[^(unwanted)]>&
<xyz>(?:(?!unwanted).)+</xyz>
Matches all chars in <xyz>...</xyz>, but only as long as the expression unwanted doesn't start at any of them.
<xyz>...</xyz>
unwanted