5 Jun
2008
5 Jun
'08
8:42 a.m.
How about: #include <boost/algorithm/string.hpp> boost::algorithm::replace_all(str, "abc", "abc$$$"); (or replace_first if you'll never have more than one occurrence of abc) Bruno