가능한 중복 :
Is gcc4.7 buggy about regular expressions?C++ 11 표준 : regex_match 돌아 여분의 문자
내가 http://www.cplusplus.com/reference/std/regex/regex_match/의 예를 다음과 우분투 12.04에 컴파일 된 64 비트 g와 ++ 버전 4.6 .3
내 출력은 다음과 같습니다.
string literal matched
string object matched
range matched
string literal with 3 matches
string object with 3 matches
range with 3 matches
the matches were: [subject] [sub] [bject]
샘플 출력하지만 내 머신 [bject]이 옳지 않다 추출하는 것을
string literal matched
string object matched
range matched
string literal with 3 matches
string object with 3 matches
range with 3 matches
the matches were: [subject] [sub] [ject]
통지. 어떤 아이디어?
참으로 ... http://liveworkspace.org/code/05747d2336f0fcd071aba84ba3fd13fb –
그것은 std : regex의 버그라는 것을 의미합니까? – Jeremy
이 결과 (동일한 환경)를 확인할 수 있습니다. –