假设我得到以下文本(在字符串数组中)
engine.STEPCONTROL("00000000","02000001","02000043","02000002","02000007","02000003","02000008","02000004","02000009","02000005","02000010","02000006","02000011");
if("02000001" == 1){
dimlevel = 1;
}
if("02000001" == 2){
dimlevel = 3;
}
我想提取引号之间的字符串并将其放入单独的字符串数组中。例如,提取的 string[] 将包含 00000000, 02000001, 02000043....
最好的方法是什么?我应该使用正则表达式以某种方式解析这些行并将其拆分吗?