fork(1) download
  1. #include <iostream>
  2. #include <regex>
  3. using namespace std;
  4.  
  5. int main() {
  6. std::string inputStr("apple with make,up things $312,412,3.00");
  7. std::regex numRegex(R"((\d),(?=\d))");
  8. std::cout << regex_replace(inputStr, numRegex, "$1") << "\n";
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5380KB
stdin
Standard input is empty
stdout
apple with make,up things $3124123.00