Are you using the broken gcc implementation of std::regex?
If you are, I'd suggest using boost.
I'm using gcc of MinGW 4.7.2, seems broken... why buggy code like this got released?
|why the current implementation just quietly fails in some instances|
Simply because the original author disappeared after committing a few early work-in-progress bits, and nobody else found time or desire to do it for the gcc project.
Here's the explanation in libstdc++'s maintainer's own words: http://stackoverflow.com/a/12665408/273767
Last edited on