I have the following text:
query([[
select *
from ]]..s_Schema..[[Table
where RowNumber = n_Counter
]],{Counter = n_Counter});
I need to find substring n_ that is between ([[ and ]],.
Such a regexp: \(\[\[[.\r\n]+n_[.\r\n]+\]\], doesn't work.
My case seems to be opposite to this one: Regular expressions: find string without substring
Or this: regex match substring unless another substring matches
(?s)\[\[(?:(?!\[\[).)*?n_.*?\]\], but I have no idea what you really need to obtain in the end.