fork(6) download
  1. #include <iostream>
  2. #include <string>
  3. #include <regex>
  4. using namespace std;
  5.  
  6. int main() {
  7. std::regex e ("[[:alpha:]]");
  8. if(std::regex_match("A",e))
  9. std::cout<<"hi";
  10. else
  11. std::cout<<"no";
  12. return 0;
  13. }
Success #stdin #stdout 0s 4312KB
stdin
Standard input is empty
stdout
hi