我需要从这个网页本文抓取数据: http://www.chess.com/home/game_archive?sortby=&show=echess&member=deckers1066的JavaScript/Greasemonkey的比赛(),正则表达式
我似乎无法得到它的工作使用。
var text = document.body;
var results = text.match(/id=[0-9]*>/g);
我需要抓住的是这个样子
/echess /游戏所有出现?ID = 60942234
我更感兴趣的ID号
我觉得'document.body.toString(); //“[object HTMLBodyElement]”会成为第一次发现错误的洞察,http://stackoverflow.com/a/1732454/444991应该是第二个。 – Matt