fork(1) download
  1. #include <iostream>
  2. #include <regex>
  3. #include <string>
  4.  
  5. int main()
  6. {
  7. std::basic_string<char> reg = "^\\w";
  8.  
  9. try
  10. {
  11. std::basic_regex<char> tagRegex(reg);
  12. }
  13. catch(std::exception &e)
  14. {
  15. std::cout << e.what() << std::endl;
  16. }
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3544KB
stdin
Standard input is empty
stdout
Standard output is empty