I want to be able to search for anything between brackets, but excluding a certain string. e.g. I do not want to search for XXX but anything else is okay.
<XXX>
does not match but <XYZ>
<YZ>
etc do match
I am unsure how to use a wildcard to search for the string between the brackets but excluding XXX. How would I go about doing this?
edit: I'm just talking about basic grep