Need to match pattern: [[ : ]]
,
I do: \[\[(?!\[\[).[:]+.*?\]\]
But when pattern have environment with many same patterns
like this: [[:]] [[ [] ]] [[]] [[ : ]] [[ : ]]
matching is fail, and return: [[ : ]], [[ : ]]
Or if regex is: \[\[.*?[:]+.*?\]\]
, giving the:
[[ [] ]] [[]] [[ : ]] instead of [[ : ]]
What is the true way?