string str = "[COUNT([Weight] > 10)] < 20 AND [COUNT([Height] < 10)] < 25";
一个字符串,我想在方括号中值。如果我用正则表达式表达(@"\[.*?\]"
)=>返回
[COUNT([Weight] and [COUNT([Height]
,但我想要得到的值
[COUNT([Weight] > 10)] and [COUNT([Height] < 10)]
我能做到这一点?请帮助我。
谢谢!
'@ “\ [* \]”'... –