#include <iostream> #include <regex> using namespace std; int main() { regex re("a{1,1000000000}"); cout << regex_match("aaa", re) << endl; return 0; }
Standard input is empty
Standard output is empty
terminate called after throwing an instance of 'std::regex_error' what(): Number of NFA states exceeds limit. Please use shorter regex string, or use smaller brace expression, or make _GLIBCXX_REGEX_STATE_LIMIT larger.