Strange results when using C++11 regexp with gcc 4.8.2 (but works with Boost regexp) [duplicate]
It's not supported in GCC 4.8.x. Check out the corresponding Bugzilla entry:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631
Specifically: "Now regex is implemented. Should come with GCC 4.9 :)"
How to work with regular expressions in c++ with gcc 4.8 and without C++11 flag?
You can install the PCRE library and use that instead of the C++11 standard regular expressions. PCRE is really designed as a C library/interface, rather than C++, but writing a couple of trivial wrapper classes or just using it as a C library is quite easy.
Why is my C++ Regular Expression not working? [duplicate]
//Need the extended or basic because gnu gcc-4.6.1 doesn't fully support c++11 regular expressions (28.13).
It doesn't support them at all until version 4.9, despite the presence of a <regex>
header.
Sometimes it may appear to do what you want, but it basically doesn't.
Upgrade to GCC 4.9.
C++11 Regex Matching [duplicate]
See gcc's stdc++11 implementation status page -- regexes are not supported as of gcc 4.8
Edit for posterity: As mentioned in the comments, the regex library is now in libstdc++
and should be in gcc 4.9 and on.
Related Topics