Hi Aleksandr, On 21 August 2017 at 06:54, Aleksandr via cfe-dev <cfe-dev at lists.llvm.org> wrote: > std::regex RE("[^\\W]"); I think libc++ is correct. C++11 defines \W as being equivalent to [^_[:alnum:]], which means your regex is "[^[^_[:alnum:]]]". I believe that'll be parsed as "some weird character followed by ]]". Cheers. Tim.