【发布时间】:2017-07-16 07:29:46
【问题描述】:
我在使用正则表达式时遇到问题,这在 RegExr.com 和 JS 控制台上运行良好。但在 Google Apps 脚本上失败。
regex.gs
function parse()
{
var regExp = /mobileheading=\"End\sDate\"\>[^\<]+\<\/div\>/
var html = get_html();
Logger.log(html.match(regExp));
}
RegExr 链接 - http://regexr.com/3fcsg
上面的链接,有从get_html()获取的示例文本。
【问题讨论】:
标签: javascript regex google-apps-script