Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pcre module help
- X-seq: zsh-workers 20081
- From: Clint Adams <clint@xxxxxxx>
- To: Vincent Stemen <zsh@xxxxxxxxxxx>
- Subject: Re: pcre module help
- Date: Sun, 20 Jun 2004 18:44:19 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20040620173608.GA38615@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <D289C58E-C2AF-11D8-8B47-000A95D2C79E@xxxxxxxxxxxxxxxx> <20040620144844.GA24131@xxxxxxxxxxx> <20040620173608.GA38615@xxxxxxxxxxxxxxxxx>
> The shell crashing is consistent when I try to use -pcre-match after
> attempting to run pcre_compile. Also, the -pcre-match method is not
> mentioned in the zshmodules manual.
Index: Doc/Zsh/mod_pcre.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/mod_pcre.yo,v
retrieving revision 1.4
diff -u -r1.4 mod_pcre.yo
--- Doc/Zsh/mod_pcre.yo 16 Mar 2004 15:14:39 -0000 1.4
+++ Doc/Zsh/mod_pcre.yo 20 Jun 2004 22:42:20 -0000
@@ -32,3 +32,15 @@
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()
Messages sorted by:
Reverse Date,
Date,
Thread,
Author