#include <iostream> #include <regex> using namespace std; int main() { regex Ainstruction("(\\\s*@)([a-zA-Z_$][a-zA-Z_$0-9]*$|([[:digit:]]+)"); cout << regex_match(" @R0",Ainstruction) << endl; return 0; }
Standard input is empty
Standard output is empty
terminate called after throwing an instance of 'std::regex_error' what(): Parenthesis is not closed.