From 48ebe82b4839fb7a21f021d95e5b76201bad1cb8 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 18 Dec 2019 00:33:43 +0000 Subject: 45073: regex-replace docs: Simplify grammar (avoid a double negative, state defaults first). --- Doc/Zsh/contrib.yo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index a4dc8a3ae..d51fd518b 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -4284,9 +4284,10 @@ See also the tt(pager), tt(prompt) and tt(rprompt) styles below. findex(regexp-replace) item(tt(regexp-replace) var(var) var(regexp) var(replace))( Use regular expressions to perform a global search and replace operation -on a variable. If the option tt(RE_MATCH_PCRE) is not set, POSIX -extended regular expressions are used, else Perl-compatible regular -expressions (this requires the shell to be linked against the tt(pcre) +on a variable. POSIX extended regular expressions are used, +unless the option tt(RE_MATCH_PCRE) has been set, in which case +Perl-compatible regular expressions are used +(this requires the shell to be linked against the tt(pcre) library). var(var) is the name of the variable containing the string to be matched. -- cgit 1.4.1