I have a source text that contains two variables in square brackets. I would like to match both of them but only them without the text between. I’ve been always using the “non-greedy” quantifier for such purposes and also here I’ve used it:
And from what I expect it should be OK but it matches the same as if I wouldn’t use the “?” (which makes the quantifier non-greedy). So it matches the same as \[(.*)\]
As you can see I’ve used the same regexp as in xBench. Am I not aware of something or is it a program issue? Can you help me solving this?
Thank you in advance for any comment on this!