title: Splitting a string in C#
body: <p>I am trying to split a string in C# the following way:</p>
  
  <p>Incoming string is in the form</p>
  
  <pre><code>string str = "[message details in here][another message here]/n/n[anothermessage here]"
  </code></pre>
  
  <p>And I am trying to split it into an array of strings in the form</p>
  
  <pre><code>string[0] = "[message details in here]"
  string[1] = "[another message here]"
  string[2] = "[anothermessage here]"
  </code></pre>
  
  <p>I was trying to do it in a way such as this</p>
  
  <pre><code>string[] split =  Regex.Split(str, @"\[[^[]+\]");
  </code></pre>
  
  <p>But it does not work correctly this way, I am just getting an empty array or strings</p>
  
  <p>Any help would be appreciated! </p>