fork(2) download
  1. #include <regex>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. string input = "((true);(false);(0))";
  9. regex regular_exp("\\(");
  10. string replace = ")";
  11. string res = regex_replace(input, regular_exp, replace);
  12. cout << "REPLACED - " << res << endl;
  13. }
Success #stdin #stdout 0s 3560KB
stdin
Standard input is empty
stdout
REPLACED - ))true);)false);)0))