<p>Each of the <code>"pattern":"replacement"</code> pairs are a separate action, and act on the <em>results</em> of the previous substitute pairs. For example, with <code>"1":"One","10":"Ten"</code>, all occurrences of <em>1</em> are replaced with <em>One</em>, but occurrences of <em>10</em> will not be replaced with <em>Ten</em>, because the first substitution already changed all <em>1</em> characters to <em>One</em>. For the desired behavior, the order can be reversed as <code>"10":"Ten","1":"One"</code>.</p>
0 commit comments