Resolve regular expression engines
C++11 regular expressions
Added more complicated regex test patterns
Fixed the CMake add_cxx_compiler_flag function