Can anyone help with a regex method (or other) to split this string
string text = "Item -> \"Elephant\", Branches -> 10, Color -> RGB[1, 0, 1], Style -> {Font -> \"Courier New\", Size -> 7}, Display -> True";
to obtain
List<string> directives = new List<string>();
containing the following five strings?
"Item -> \"Elephant\""
"Branches -> 10"
"Color -> RGB[1, 0, 1]"
"Style -> {Font -> \"Courier New\", Size -> 7}"
"Display -> True"
,(\w+)\s+->\s+({[^{}]*}|(?:.*?)(?=, \w+\s+->|$)).