From 71a6bbaebc0b10177ec73e4112ae6482d81d0334 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 15 Aug 2001 13:56:30 +0000 Subject: unposted: Mention the word `greedy' in the docs for the S flag, to make it easier to find for those used to Perl-speak. --- Doc/Zsh/expn.yo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/expn.yo') diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index b7d010bc8..215182f71 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -795,8 +795,8 @@ item(tt(S))( Search substrings as well as beginnings or ends; with tt(#) start from the beginning and with tt(%) start from the end of the string. With substitution via tt(${)...tt(/)...tt(}) or -tt(${)...tt(//)...tt(}), specifies that the shortest instead of the -longest match should be replaced. +tt(${)...tt(//)...tt(}), specifies non-greedy matching, i.e. that the +shortest instead of the longest match should be replaced. ) item(tt(I:)var(expr)tt(:))( Search the var(expr)th match (where var(expr) evaluates to a number). -- cgit 1.4.1