我的输入文本是打击:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</string>
使用什么正则表达式模式从上述输入中提取数字?
var pattern = "<string ?>?</string>"; // how to write this?
var match = Regex.Match(input, pattern, RegexOptions.IgnoreCase);
谢谢,