日期:2014-05-18  浏览次数:20831 次

正则表达式取<select></select>
<select id=pubname name=pubname onchange="Select()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</td>
...................
<select>
....
</select>
---------------------------
请问大家一下,我现在想取第一个SELECT的字符串值,我现在写的正则表达式会连到下面的一起取到,请大家帮忙一下,看看这要怎么写,好像要用非贪婪模式,但我不会用

------解决方案--------------------
C# code
<select id=pubname[\s\S]*?>[\s\S]*?</select>