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:
Fabian Homborg 2020-06-19 21:23:51 +02:00
parent e9e23a8333
commit c5f06cde82

View file

@ -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