title: Replace part of a string with another string
body: <p>How do I replace part of a string with another string using the <strong>standard C++ libraries</strong>?</p>
  <pre><code>QString s(&quot;hello $name&quot;);  // Example using Qt.
  s.replace(&quot;$name&quot;, &quot;Somename&quot;);
  </code></pre>