mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
docs/string: Fix match examples
One was just cosmetic (too many \\), one was actually broken because it had duplicated `{{`, possibly resulting from the doxygen conversion? [ci skip]
This commit is contained in:
parent
e9e23a8333
commit
c5f06cde82
1 changed files with 2 additions and 2 deletions
|
@ -85,13 +85,13 @@ Match Regex Examples
|
|||
cat4
|
||||
dog4
|
||||
|
||||
>_ string match -r '(\\d\\d?):(\\d\\d):(\\d\\d)' 2:34:56
|
||||
>_ string match -r '(\d\d?):(\d\d):(\d\d)' 2:34:56
|
||||
2:34:56
|
||||
2
|
||||
34
|
||||
56
|
||||
|
||||
>_ string match -r '^(\\w{{2,4}})\\g1$' papa mud murmur
|
||||
>_ string match -r '^(\w{2,4})\1$' papa mud murmur
|
||||
papa
|
||||
pa
|
||||
murmur
|
||||
|
|
Loading…
Reference in a new issue