我有一个字符串等作为folows:抓取值
"channel_changes":[[1313571300,26.879846,true],[1313571360,26.901025,true]]
我想提取每串中的角撑等1313571300
,26.879846
,true
通过正则表达式。
我一直在使用
string regexPattern = @"\[(.*?)\]";
试过但给人的第一字符串作为[[1313571420,26.901025,true]
即有一个额外的角撑。
请帮我一下,我怎么做到这一点。
在.NET中,它返回5场比赛,其中三是逗号符号“”和第五是‘]’ – sll
在.net – CuriousBuddy
不工作工程在PowerShell中,不知道为什么不.NET? '[regex] :: matches(''channel_changes':[[1313571300,26.879846,true],[1313571360,26.901025,true]]','\ [([\ w,\。] *?)\]') ' –