fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <regex>
  4.  
  5. int main() {
  6. std::string test = "ℕ";
  7. test = std::regex_replace(test, std::regex(""), "z");
  8. std::cout << test << "\n";
  9.  
  10. test = "𝔸";
  11. test = std::regex_replace(test, std::regex(""), "z");
  12. std::cout << test << "\n";
  13.  
  14. test = "v̂";
  15. test = std::regex_replace(test, std::regex(""), "z");
  16. std::cout << test << "\n";
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
z�z�z�z
z�z�z�z�z
zvz�z�z