私はこれらの変数を持っています:
boost::regex re //regular expression to use
std::string stringToChange //replace this string
std::string newValue //new value that is going to replace the stringToChange depending on the regex.
最初に出現したものだけを置き換えたいだけです。
ありがとうございます。
編集:私はこれを見つけました:
boost::regex_replace(stringToChange, re, boost::format_first_only);
関数が存在しないと表示されますが、現時点ではパラメーターが間違っていると思います。