Fixing C++11 regex test.

So far, GCC 4.9.1 and Clang 3.5.0 support std::regex.