@@ -336,23 +336,32 @@ If {{word1}} matches more than one part of the value, only the first part is
336336replaced.
337337The shortest matching is replaced if more than one matching is possible for
338338the same starting point in the value.
339+ An empty {{word1}} matches the empty string at the beginning of the value, so
340+ +${{{parameter}}/""/{{word2}}}+ prefixes {{word2}} to the value.
339341+
340342This modifier cannot be used in the link:posix.html[POSIXly-correct mode].
341343
342344+/#{{word1}}/{{word2}}+::
343345This is similar to +/{{word1}}/{{word2}}+ above.
344346The only difference is that {{word1}} matches only at the beginning of the
345347value being expanded.
348+ An empty {{word1}} matches the empty string at the beginning of the value, so
349+ +${{{parameter}}/#/{{word2}}}+ prefixes {{word2}} to the value.
346350
347351+/%{{word1}}/{{word2}}+::
348352This is similar to +/{{word1}}/{{word2}}+ above.
349353The only difference is that {{word1}} matches only at the end of the value
350354being expanded.
355+ An empty {{word1}} matches the empty string at the end of the value, so
356+ +${{{parameter}}/%/{{word2}}}+ suffixes {{word2}} to the value.
351357
352358+//{{word1}}/{{word2}}+::
353359This is similar to +/{{word1}}/{{word2}}+ above.
354360The only difference is that all matched parts are replaced if {{word1}}
355361matches more than one part of the value.
362+ An empty {{word1}} matches the empty string at the beginning of the value,
363+ between each two adjacent characters, and at the end of the value, so all
364+ those empty matches are replaced with {{word2}}.
356365
357366+:/{{word1}}/{{word2}}+::
358367This is similar to +/{{word1}}/{{word2}}+ above.
0 commit comments