about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2004-06-20 22:47:16 +0000
committerClint Adams <clint@users.sourceforge.net>2004-06-20 22:47:16 +0000
commitc21172f2d0166d70cdb4eea5be9890465d980a63 (patch)
treed129b80d787336a093b525305824a42d63a16b1d
parent773b5c95d46b4d1c1cd58340b2c799a99320c555 (diff)
downloadzsh-c21172f2d0166d70cdb4eea5be9890465d980a63.tar.gz
zsh-c21172f2d0166d70cdb4eea5be9890465d980a63.tar.xz
zsh-c21172f2d0166d70cdb4eea5be9890465d980a63.zip
* 20081: Doc/Zsh/mod_pcre.yo: document -pcre-match condition.
-rw-r--r--ChangeLog4
-rw-r--r--Doc/Zsh/mod_pcre.yo12
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6d6db453a..3affcb13e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-18  Clint Adams  <clint@zsh.org>
+
+	* 20081: Doc/Zsh/mod_pcre.yo: document -pcre-match condition.
+
 2004-06-18  Oliver Kiddle  <opk@zsh.org>
 
 	* 20077: Completion/Zsh/Command/_disable,
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()