I have defined my own tags and attributes, like [TITLE|prefix=X]. Now I would like to get the value of the attribute prefix, which is defined for the tag [TITLE].
This is what I have used:
(?<=TITLE[^\]].+prefix=)[^\]|]+
If the string is [TITLE][DYNAMIC|prefix=Y], it works fine, since there is no match but if the string is [TITLE|suffix=X][DYNAMIC|prefix=Y], it gives me the wrong value but it should be no match too.