diff options
Diffstat (limited to 'doc_src/string.txt')
-rw-r--r-- | doc_src/string.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc_src/string.txt b/doc_src/string.txt index c7781473..37d24435 100644 --- a/doc_src/string.txt +++ b/doc_src/string.txt @@ -110,7 +110,7 @@ string trim --right --chars=yz xyzzy zany \endfish \fish -echo \\x07 | string escape +echo \x07 | string escape # Output: # \\cg \endfish @@ -193,7 +193,7 @@ string replace -r '(\\w+)\\s+(\\w+)' '$2 $1 $$' 'left right' # Output: # right left $ -string replace -r '\s*newline\s*' '\n' 'put a newline here' +string replace -r '\\s*newline\\s*' '\n' 'put a newline here' # Output: # put a # here |