From befd90b84787b2508ee32549f7a38859d0056b55 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 16 Mar 2004 15:14:30 +0000 Subject: * 19631: Doc/Zsh/mod_pcre.yo, Src/Modules/pcre.c: avoid segfault when pcre_study is called before pcre_compile; documentation on pcre_compile options. --- Doc/Zsh/mod_pcre.yo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo index 8eadee38b..1d3d18954 100644 --- a/Doc/Zsh/mod_pcre.yo +++ b/Doc/Zsh/mod_pcre.yo @@ -8,6 +8,13 @@ startitem() findex(pcre_compile) item(tt(pcre_compile) [ tt(-aimx) ] var(PCRE))( Compiles a perl-compatible regular expression. + +Option tt(-a) will force the pattern to be anchored. +Option tt(-i) will compile a case-insensitive pattern. +Option tt(-m) will compile a multi-line pattern; that is, +tt(^) and tt($) will match newlines within the pattern. +Option tt(-x) will compile an extended pattern, wherein +whitespace and tt(#) comments are ignored. ) findex(pcre_study) item(tt(pcre_study))( -- cgit 1.4.1