额额~大神有请
字符串是:
<p><a href="javascript:void(0);" id="qx2">统计</a> 共<span id="nowcnum">304</span>名教师</p>
用正则表达式,得到304,怎么写啊大神?
[解决办法]
@"(?<=共\<span\sid\=""nowcnum""\>)\d+(?=\<\/span\>名教师)"
[解决办法]
Trace.WriteLine("-" + num.Value + "-");