The input line looks like this (only part of it):
[[Text Text Text]][[text text text]]asdasdasdasda[[asdasdasdasd]]
I want the list of all matches to contain text enclosed in a couple [[ and ]] . I tried several templates, but everything fails when the private [[ or ]] is inside the input line. For example:
[[text[[text text TEXT text]]
Also, what if there is one bracket in the input line, for example:
[[text [text] text TEXT text]]
I used the regex pattern:
\[\[[^\[\[]*\]\]
regex regex-negation
user1251683
source share