I am looking for a regex, that extracts everything after a given text (here, "HIT") until the next pipe symbol "|" which is NOT surrounded by "[[" and "]]".
Example-Text:
text | HIT = [[t1|t2]] moretext [[more braces]] | moretext | moretext
This is the regex I've tried:
HIT[ \t]*=(.[^\|]+)
Of course, this only returns "HIT = [[t1" but I am looking for a regex that returns "HIT = [[t1|t2]] moretext [[more braces]]".
Thanks for your kind support
Christian