mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03: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:
@@ -85,13 +85,13 @@ Match Regex Examples
|
|||||||
cat4
|
cat4
|
||||||
dog4
|
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
|
||||||
2
|
2
|
||||||
34
|
34
|
||||||
56
|
56
|
||||||
|
|
||||||
>_ string match -r '^(\\w{{2,4}})\\g1$' papa mud murmur
|
>_ string match -r '^(\w{2,4})\1$' papa mud murmur
|
||||||
papa
|
papa
|
||||||
pa
|
pa
|
||||||
murmur
|
murmur
|
||||||
|
|||||||
Reference in New Issue
Block a user