[PATCH][libcxx] regex: Support capturing parens inside lookahead assertions
William Fisher
william.w.fisher at gmail.com
Sat Jul 20 15:41:08 PDT 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130720/a9a3f767/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookahead_capture.cpp
Type: text/x-c++src
Size: 1437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130720/a9a3f767/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookahead_capture.patch
Type: application/octet-stream
Size: 3504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130720/a9a3f767/attachment.obj>
More information about the cfe-commits
mailing list