From c21172f2d0166d70cdb4eea5be9890465d980a63 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 20 Jun 2004 22:47:16 +0000 Subject: * 20081: Doc/Zsh/mod_pcre.yo: document -pcre-match condition. --- Doc/Zsh/mod_pcre.yo | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo index 1d3d18954..58833823a 100644 --- a/Doc/Zsh/mod_pcre.yo +++ b/Doc/Zsh/mod_pcre.yo @@ -32,3 +32,15 @@ substrings, unless the tt(-a) option is given, in which case it will set the array var(arr). ) enditem() + +The tt(zsh/pcre) module makes available the following test condition: +startitem() +findex(pcre-match) +item(expr tt(-pcre-match) pcre)( +Matches a string against a perl-compatible regular expression. + +For example, + +[[ "$text" -pcre-match ^d+$ ]] && print text variable contains only "d's". +) +enditem() -- cgit 1.4.1