string str = "[COUNT([Weight] > 10)] < 20 AND [COUNT([Height] < 10)] < 25";
一個字符串,我想在方括號中值。如果我用正則表達式表達(@"\[.*?\]"
)=>返回
[COUNT([Weight] and [COUNT([Height]
,但我想要得到的值
[COUNT([Weight] > 10)] and [COUNT([Height] < 10)]
我能做到這一點?請幫助我。
謝謝!
'@ 「\ [* \]」'... –