mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
35075: improve manual format
also fixed a ChangeLog entry for 35034 (2015-05-06)
This commit is contained in:
parent
5b7e50dcd0
commit
ffdeb1c257
25 changed files with 420 additions and 375 deletions
|
@ -31,18 +31,18 @@ PCRE.
|
|||
|
||||
Upon successful match,
|
||||
if the expression captures substrings within parentheses,
|
||||
tt(pcre_match) will set the array var($match) to those
|
||||
tt(pcre_match) will set the array tt(match) to those
|
||||
substrings, unless the tt(-a) option is given, in which
|
||||
case it will set the array var(arr). Similarly, the variable
|
||||
var(MATCH) will be set to the entire matched portion of the
|
||||
tt(MATCH) will be set to the entire matched portion of the
|
||||
string, unless the tt(-v) option is given, in which case the variable
|
||||
var(var) will be set.
|
||||
No variables are altered if there is no successful match.
|
||||
A tt(-n) option starts searching for a match from the
|
||||
byte var(offset) position in var(string). If the tt(-b) option is given,
|
||||
the variable var(ZPCRE_OP) will be set to an offset pair string,
|
||||
the variable tt(ZPCRE_OP) will be set to an offset pair string,
|
||||
representing the byte offset positions of the entire matched portion
|
||||
within the var(string). For example, a var(ZPCRE_OP) set to "32 45" indicates
|
||||
within the var(string). For example, a tt(ZPCRE_OP) set to "32 45" indicates
|
||||
that the matched portion began on byte offset 32 and ended on byte offset 44.
|
||||
Here, byte offset position 45 is the position directly after the matched
|
||||
portion. Keep in mind that the byte position isn't necessarily the same
|
||||
|
@ -75,7 +75,7 @@ The tt(zsh/pcre) module makes available the following test condition:
|
|||
|
||||
startitem()
|
||||
findex(pcre-match)
|
||||
item(expr tt(-pcre-match) pcre)(
|
||||
item(var(expr) tt(-pcre-match) var(pcre))(
|
||||
Matches a string against a perl-compatible regular expression.
|
||||
|
||||
For example,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue