I have a textual content like this
some text [some text] another text [some text] some more text [some text] another
text [some text] the ending of it
I need a regular expression to capture all the [*] as group. So I would have the output as this
[some text] [some text] [some text]
but when I tried this
[(.*)]
I only get one group, that is
[some text] another text [some text] some more text [some text]
another
text [some text]
thanks
The regex is
The C# string would be
Apply with the global flag to match all occurrences.