<div dir="ltr">This patch fixes a bug where std::regex in ECMAScript mode was ignoring capture groups inside lookahead assertions. <div><br><div>For example, matching /(?=(a))(a)/ to "a" should yield two captures: \1 = "a", \2 = "a"</div>
<div><br></div><div>The test cases are in lookahead_capture.cpp.</div><div><br></div><div>Thanks,</div><div>Bill</div></div></div>