Match anything between special characters in c# : <p>I have a string like this
[test]][test][test]</p>

<p>I would like with a regex to obtain a collection of elements where each element will be a value between the brackets [] :</p>

<p>test<br>
test<br>
test<br></p>

<p>With this code:</p>

<pre><code>var pattern = @"\[(.*?)\]";            
var results = Regex.Matches("[test]][test][test]", pattern);
</code></pre>

<p>I managed to get the values but they include the brackets [] :</p>

<p>[test]<br>
[test]<br>
[test]<br></p>
