[PATCH][libcxx] regex: Support capturing parens inside lookahead assertions
Howard Hinnant
hhinnant at apple.com
Tue Jul 23 09:20:13 PDT 2013
On Jul 20, 2013, at 6:41 PM, William Fisher <william.w.fisher at gmail.com> wrote:
> This patch fixes a bug where std::regex in ECMAScript mode was ignoring capture groups inside lookahead assertions.
>
> For example, matching /(?=(a))(a)/ to "a" should yield two captures: \1 = "a", \2 = "a"
>
> The test cases are in lookahead_capture.cpp.
>
> Thanks,
> Bill
> <lookahead_capture.cpp><lookahead_capture.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
Awesome job Bill!
Committed revision 186954.
Thanks,
Howard
More information about the cfe-commits
mailing list