fork download
  1. #include <iostream>
  2. #include <regex>
  3. using namespace std;
  4.  
  5. int main() {
  6. regex Ainstruction("(\\\s*@)([a-zA-Z_$][a-zA-Z_$0-9]*$|([[:digit:]]+)");
  7. cout << regex_match(" @R0",Ainstruction) << endl;
  8. return 0;
  9. }
Runtime error #stdin #stdout #stderr 0s 16160KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'std::regex_error'
  what():  Parenthesis is not closed.