0
<span id="WidgetMain1_WidgetContact1_City_lbl">Woodside, </span>
<span id="WidgetMain1_WidgetContact1_State_lbl">NY</span>
我想的名字伍德賽德和國家NY,我嘗試:
Regex rl = new Regex(@"WidgetMain1_WidgetContact1_City_lbl/"">(.+?)</span>");
Regex nn = new Regex(@"WidgetMain1_WidgetContact1_State_lbl/"">(.+?)</span>");
它不會在這兩種情況下工作:(
爲什麼你的模式中有額外的正斜槓(即'lbl /')? –