【发布时间】:2018-05-09 21:31:24
【问题描述】:
尝试我之前的 stackoverflow 问题 (Regex non-escaped quotation marks) 中的一个 cmets 导致了一个新问题:
var string = 'hello"ther';
string.match(/(?:[^\\])"/);
// ["o"", index: 4, input: "hello"ther", groups: undefined]
比赛包括"之前的o,即使该组有?:,我认为这使它无法捕获。
【问题讨论】:
标签: javascript regex