diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-20 11:42:09 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-07-20 11:42:09 -0700 |
| commit | 2693d852f61ee5e1465d31d98a166cde4956ccd1 (patch) | |
| tree | 650e0efbbbf70c9937d6333a5fe2460855d3ec4c /Doc/Zsh/mod_pcre.yo | |
| parent | 32882 (cf. Augie Fackler 32879): correct reload of backslash-continuation lin... (diff) | |
| download | zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar.gz zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar.bz2 zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar.lz zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar.xz zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.tar.zst zsh-2693d852f61ee5e1465d31d98a166cde4956ccd1.zip | |
32891: CASE_MATCH for =~ when using pcre; fix pcre_match with empty string
Diffstat (limited to 'Doc/Zsh/mod_pcre.yo')
| -rw-r--r-- | Doc/Zsh/mod_pcre.yo | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo index 6ab5a1937..faada28de 100644 --- a/Doc/Zsh/mod_pcre.yo +++ b/Doc/Zsh/mod_pcre.yo @@ -80,6 +80,14 @@ Matches a string against a perl-compatible regular expression. For example, -[[ "$text" -pcre-match ^d+$ ]] && print text variable contains only "d's". +example([[ "$text" -pcre-match ^d+$ ]] && +print text variable contains only "d's".) + +pindex(REMATCH_PCRE) +pindex(NO_CASE_MATCH) +If the tt(REMATCH_PCRE) option is set, the tt(=~) operator is equivalent to +tt(-pcre-match), and the tt(NO_CASE_MATCH) option may be used. Note that +tt(NO_CASE_MATCH) never applies to the tt(pcre_match) builtin, instead use +the tt(-i) switch of tt(pcre_compile). ) enditem() |
