求用C#正则表达式 提取以下文本内的内容
*110002+00000000000BT50121.324+000000000000000022.324+000000000904256031...0+00000000...
*110002+00000000000BT501 21.324+0000000000000000 22.324+0000000009042560 31...0+0000000000173999 51....+000000000009+000 87...0+0000000000001350 81...0+0000000000000000 82...0+0000000000173986 83...0-0000000000001978
*110003+0000000000000001 21.324+0000000017959550 22.324+0000000026916540 31...0+0000000000173993 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000000004 82...0+0000000000173980 83...0-0000000000001986
*110004+0000000000000002 21.324+0000000035655170 22.324+0000000009044230 31...0+0000000000129051 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000006930 82...0+0000000000128854 83...0-0000000000001472
*110005+0000000000000003 21.324+0000000035616190 22.324+0000000009044130 31...0+0000000000112517 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000007315 82...0+0000000000112270 83...0-0000000000001253
每一段空格隔开的字符串只需要提取0后面的数值比如 *110002+00000000000BT501 我只要BT501
再比如21.324+0000000035655170 我只要35655170 0000000009044130 只要9044130 展开
*110003+0000000000000001 21.324+0000000017959550 22.324+0000000026916540 31...0+0000000000173993 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000000004 82...0+0000000000173980 83...0-0000000000001986
*110004+0000000000000002 21.324+0000000035655170 22.324+0000000009044230 31...0+0000000000129051 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000006930 82...0+0000000000128854 83...0-0000000000001472
*110005+0000000000000003 21.324+0000000035616190 22.324+0000000009044130 31...0+0000000000112517 51....+000000000009+000 87...0+0000000000001350 81...0-0000000000007315 82...0+0000000000112270 83...0-0000000000001253
每一段空格隔开的字符串只需要提取0后面的数值比如 *110002+00000000000BT501 我只要BT501
再比如21.324+0000000035655170 我只要35655170 0000000009044130 只要9044130 展开
1个回答
展开全部
追问
请问用WINform 怎么处理?我弄进去,每条都提示我存档。
追答
不清楚你需要的具体是什么格式,winform没区别,把上面的temp收集一下就行了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询