任何人都可以帮助使用正则表达式方法(或其他方法)来分割此字符串
string text = "Item -> \"Elephant\", Branches -> 10, Color -> RGB[1, 0, 1], Style -> {Font -> \"Courier New\", Size -> 7}, Display -> True";
获取
List<string> directives = new List<string>();
包含以下五个字符串?
"Item -> \"Elephant\""
"Branches -> 10"
"Color -> RGB[1, 0, 1]"
"Style -> {Font -> \"Courier New\", Size -> 7}"
"Display -> True"
最佳答案
关于c# - 使用正则表达式分割嵌套参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36448450/