请问这个很长的字符串应该如何截取?
请问这个很长的字符串应该如何截取?ZLT080U,合格;ZLT110U,合格;OP100Imax,-0.6293,-0.7608,-0.6951,-0.7;OP100I100,-0.2537,-0.2427,-0.2482,-0.2;OP50LI100,+0.3478,+0.4296,+0.3887,+0.4;OP50LI020,*+1.2528,*+1.2312,*+1.2420,*+1.2;OP100I010,-0.0489,-0.0149,-0.0319,-0.0;AP100Imax,*+2.2145,*+2.2029,*+2.2087,*+2.2;AP100I100,+0.3825,+0.4486,+0.4156,+0.4;AP50LI100,+0.9761,+0.9580,+0.9671,+1.0;AP100I020,+0.8481,+0.8986,+0.8734,+0.9;BP100Imax,+1.6718,+1.8099,+1.7409,+1.7;BP100I100,+0.2696,+0.1970,+0.2333,+0.2;BP50LI100,+0.6767,+0.6767,+0.6767,+0.7;BP100I020,+0.8576,+0.8230,+0.8403,+0.8;CP100Imax,+1.9945,*+2.2378,*+2.1162,*+2.1;CP100I100,+0.7398,+0.6958,+0.7178,+0.7;CP50LI100,+0.4610,+0.5429,+0.5020,+0.5;CP100I020,+0.9607,+0.9805,+0.9706,+1.0
红色部分为我想要的部分
我的思路是先按分号截取,然后再按逗号截取。思路正确吗?具体操作又应该如何做呢?