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]/
Instead of using a regex you could use the Split method on the string like so
Split
Split(new[] { '\n', '[', ']' }, StringSplitOptions.RemoveEmptyEntries)
You'll loose [ and ] around your results with this method but it's not hard to add them back in as needed.
[
]