fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <regex>
  4. #include <iterator>
  5.  
  6. int main ()
  7. {
  8. std::wregex e (L"[\u26A0\u24C2\u267B]");
  9. std::wstring s (L"test \u26A0 \u24C2 \u267B test");
  10. std::wcout << std::regex_replace (s,e,L"null");
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3564KB
stdin
Standard input is empty
stdout
test null null null test