js 正则表达式提取内容

var wlan = /([a-zA-Z0-9]+)\s+Scan completed :/
var current_wlan=""
if (line.match("Scan completed :")) {
            current_wlan = (wlan.exec(line)[1]).trim();
            continue;
}
posted @ 2016-09-19 14:37  蚂蚁都督  阅读(21905)  评论(0编辑  收藏  举报