[cfe-dev] [libcxx] Multiline regular expression matching

Jonathan Sauer jonathan.sauer at gmx.de
Sat Mar 26 13:49:05 PDT 2011


Hello,

>> - Is libc++'s current behaviour a bug?
> 
> I believe it is a libc++ bug.  I've committed a fix revision 128350.

It works now as expected. Thank you!

To avoid capturing the previous line ending, I changed the expression a little bit
using an assertion to (C-string, hence the double escape):
"(?=^|[\\n\\r])#include\\s*<([^>]+)>". This also worked.


Jonathan





More information about the cfe-dev mailing list