From 7f03c3d851c571d86d18c701d882c13ad5d06c6c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 1 May 2007 22:05:03 +0000 Subject: 23375: Phil Pennock: =~, zsh/regex etc. etc. --- Doc/Zsh/mod_pcre.yo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/mod_pcre.yo') diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo index 58833823a..f6131f5e4 100644 --- a/Doc/Zsh/mod_pcre.yo +++ b/Doc/Zsh/mod_pcre.yo @@ -22,14 +22,17 @@ Studies the previously-compiled PCRE which may result in faster matching. ) findex(pcre_match) -item(tt(pcre_match) [ tt(-a) var(arr) ] var(string))( +item(tt(pcre_match) [ tt(-v) var(var) ] [ 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 array var($match) to those substrings, unless the tt(-a) option is given, in which -case it will set the array var(arr). +case it will set the array var(arr). Similarly, the variable +var(MATCH) will be set to the entire matched portion of the +string, unless the tt(-v) option is given, in which case the variable +var(var) will be set. ) enditem() -- cgit 1.4.1