File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1073,8 +1073,11 @@ is supplied, the transformed string is instead written to `io` (returning `io`).
1073
1073
(For example, this can be used in conjunction with an [`IOBuffer`](@ref) to re-use
1074
1074
a pre-allocated buffer array in-place.)
1075
1075
1076
- Multiple patterns can be specified, and they will be applied left-to-right
1077
- simultaneously, so only one pattern will be applied to any character, and the
1076
+ Multiple patterns can be specified: The input string will be scanned only once
1077
+ from start (left) to end (right), and the first matching replacement
1078
+ will be applied to each substring. Replacements are applied in the order of
1079
+ the arguments provided if they match substrings starting at the same
1080
+ input string position. Thus, only one pattern will be applied to any character, and the
1078
1081
patterns will only be applied to the input text, not the replacements.
1079
1082
1080
1083
!!! compat "Julia 1.7"
You can’t perform that action at this time.
0 commit comments