I am trying to split a string in C# the following way:
Incoming string is in the form
string str = \"[message details in here][another message here]/
Use the Regex.Matches method instead:
Regex.Matches
string[] result = Regex.Matches(str, @"\[.*?\]").Cast().Select(m => m.Value).ToArray();