mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
unposted: Mention the word `greedy' in the docs for the S flag, to
make it easier to find for those used to Perl-speak.
This commit is contained in:
parent
a4ba95139d
commit
71a6bbaebc
2 changed files with 6 additions and 2 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue