title: Swift 5 replacingOccurrences multiple elements
body: <pre><code>let osetx = &quot;01et&quot;
  </code></pre>
  <p>I want to replace &quot;e&quot; with &quot;11&quot; and &quot;t&quot; with &quot;10.&quot; What is the syntax to do that by calling the function only once?</p>
  <pre><code>let newOsetx = osetx.replacingOccurrences(of: &quot;e&quot;, with: &quot;11&quot;)
  </code></pre>
  <p>The above only replaces one of the 2 elements, obviously.</p>
  <p>THANK YOU pawello2222 for the syntax in the comments.</p>
  <p>osetx.replacingOccurrences(of: &quot;e&quot;, with: &quot;11&quot;).replacingOccurrences(of: &quot;t&quot;, with: &quot;10&quot;)</p>