我的做法是:
var regtitlenav = new RegExp("检索条件:\\s+<span id=\"ctl00_ContentPlaceHolder1_conditionlbl\">任意词=<font color=\"#ff0000\">(.*)</font>\\s+</span></span><span>结果数:\\s+<span id=\"ctl00_ContentPlaceHolder1_countlbl\" style=\"color:Red;\">(\\d+)</span></span> ");
var mtitlenav = regtitlenav.exec(responsetext);
alert(mtitlenav);
想返回包含瓦尔登湖、26的数组,但上面结果提示null
小白求解啊..
<span id="ct100[^<]*<font.*?>(.*?)<[\s\S]*?<span id="ct100.*?>(.*?)<
用捕获吧