From b65dcc197bf5e44071f9391a2b45224d2935d571 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 4 Jul 2001 15:13:33 +0000 Subject: 15242: pcre_match -a and $match instead of pparams --- Doc/Zsh/mod_pcre.yo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Doc/Zsh/mod_pcre.yo') diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo index 2d9989083..8eadee38b 100644 --- a/Doc/Zsh/mod_pcre.yo +++ b/Doc/Zsh/mod_pcre.yo @@ -15,12 +15,13 @@ Studies the previously-compiled PCRE which may result in faster matching. ) findex(pcre_match) -item(tt(pcre_match) var(string))( +item(tt(pcre_match) [ tt(-a) var(arr) ] var(string))( Returns successfully if tt(string) matches the previously-compiled PCRE. If the expression captures substrings within parentheses, -tt(pcre_match) will set the positional parameters to -those substrings, starting with $1 for the first. +tt(pcre_match) will set the array var($match) to those +substrings, unless the tt(-a) option is given, in which +case it will set the array var(arr). ) enditem() -- cgit 1.4.1