额额~大神有请
字符串是:
<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 + "-");