请帮助我解决方案,以将下面提到的代码的值字段转换为变量
<select name="ctl00$MainContentPlaceHolder$DropDowns1$CountryCityDropDownList" onchange="validate(this);setTimeout('__doPostBack(\'ctl00$MainContentPlaceHolder$DropDowns1$CountryCityDropDownList\',\'\')', 0)" id="ctl00_MainContentPlaceHolder_DropDowns1_CountryCityDropDownList" class="DropDownMedium">
<option value="-1">Select</option>
<option value="7099">4</option>
<option value="7092">a, b, c1</option>
<option value="7093">a,b,c3</option>
<option value="7123">AA, Testing</option>
<option value="7089">aaaa</option>
<option selected="selected" value="240">AL, Alabaster</option>
<option value="244">AL, Albertville</option>
<option value="250">AL, Alexander City</option>
<option value="275">AL, Andalusia</option>
<option value="281">AL, Anniston</option>
<option value="285">AL, Arab</option>
<option value="297">AL, Athens</option>
<option value="393">AL, Atmore</option>
<option value="312">AL, Auburn</option>
<option value="303">AL, Bay Minette</option>
<option value="466">AL, Bessemer</option>
我应该能够将value =“ 7099” value =“ 7123”捕获到单独的变量中
答案 0 :(得分:0)
添加带有正则表达式value="(.*?)"
且匹配号设置为-1
的正则表达式提取器。
这会将所有匹配项保存在一个数组中。您将可以通过$ {varName_1},$ {varName_2} ... $ {varName_matchNr}
访问值