This regex gives a runtime error
#include <regex>
int main( int argc, const char* argv[] )
{
std::regex test("[^*]");
}
Error:
./test
terminate called after throwing an instance of 'std::regex_error'
what(): regex_error
Aborted
Presumabily because some of the things do not work in ecmascript c++11. I've tried some variations (basic, extended, grep, egrep) but with no success.
How to do that regex in C++11 please? (Boost is not an option).