#include <regex>
#include <string>
#include <iostream>
using namespace std;
int main() {
string texto = "gabriel = 1.73,derp = 1.80,";
regex padrao("gabriel = (.*?),");
cout << regex_replace(texto, padrao, "gabriel = 1.75,");
return 0;
}
I2luY2x1ZGUgPHJlZ2V4PgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cmluZyB0ZXh0byA9ICJnYWJyaWVsID0gMS43MyxkZXJwID0gMS44MCwiOwoJcmVnZXggcGFkcmFvKCJnYWJyaWVsID0gKC4qPyksIik7Cgljb3V0IDw8IHJlZ2V4X3JlcGxhY2UodGV4dG8sIHBhZHJhbywgImdhYnJpZWwgPSAxLjc1LCIpOwoJcmV0dXJuIDA7Cn0=