问题1.
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解决方法:
//g++ 后面加上 -std=c++11
g++ -o regex regex.cpp --std=c++11