Aesthetically Pleasing String Replace Statement
<p>I currently have code that looks like this:</p>

<pre><code>$onestr = $twostr -replace "one","two" -replace "uno","dos"
</code></pre>

<p>I would like to format it like this:</p>

<pre><code>$onestr = $twostr -replace "one","two" 
                  -replace "uno","dos"
</code></pre>

<p>such that the replace statements stack on top of each other.</p>

<p>I could use backtic as the line continuation character, but other stackoverflow questions cover why that is not a good idea.</p>

<p>I tried code that looks like this:</p>

<pre><code>$onestr = ($twostr -replace "one","two" 
                   -replace "uno","dos"
          )
</code></pre>

<p>But I got an error that the paren is not matched.</p>

<p>My actual code has several replace statements (not just two).</p>