fork download
  1. #include <regex>
  2. #include <string>
  3. #include <iostream>
  4.  
  5. int main ()
  6. {
  7. std::string string("0");
  8. std::regex pattern("^0$",std::regex_constants::extended);
  9. bool match(std::regex_match(string,pattern));
  10. std::cout << match << std::endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3508KB
stdin
Standard input is empty
stdout
0