Skip to content

Commit f8c05d6

Browse files
committed
Tweak to Substitute
1 parent b2b4009 commit f8c05d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/manual/measures/general-options/substitute.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2>Options</h2>
1515

1616
<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>
1717

18-
<p>Instead of <code>"pattern":"replacement"</code>, single quotes can be used <em>either</em> around the pattern or the replacement. (i.e. <code>'pattern':"replacement"</code> or <code>"pattern":'replacement'</code>, but not <code>'pattern':'replacement'</code>) This can be useful when either the pattern or the replacement contains double quotes. For example, <code>'"':"double quote"</code> replaces all occurrences of <em>"</em> with <em>double quote</em>.</p>
18+
<p>Instead of <code>"pattern":"replacement"</code>, single quotes can be used <em>either</em> around the pattern or the replacement. (i.e. <code>'pattern':"replacement"</code> or <code>"pattern":'replacement'</code>, but not <code>'pattern':'replacement'</code>) This can be useful when either the pattern or the replacement contains double quotes. For example, <code>'"':"double quote"</code> replaces all occurrences of the character <em>"</em> with the string <em>double quote</em>.</p>
1919
</dd>
2020

2121
<dt id="RegExpSubstitute"><code>RegExpSubstitute</code> <small>Default: <code>0</code></small></dt>

0 commit comments

Comments
 (0)