mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
23375: Phil Pennock: =~, zsh/regex etc. etc.
This commit is contained in:
parent
eb4c3d4bf2
commit
7f03c3d851
14 changed files with 392 additions and 51 deletions
|
|
@ -22,14 +22,17 @@ Studies the previously-compiled PCRE which may result in faster
|
|||
matching.
|
||||
)
|
||||
findex(pcre_match)
|
||||
item(tt(pcre_match) [ tt(-a) var(arr) ] var(string))(
|
||||
item(tt(pcre_match) [ tt(-v) var(var) ] [ tt(-a) var(arr) ] var(string))(
|
||||
Returns successfully if tt(string) matches the previously-compiled
|
||||
PCRE.
|
||||
|
||||
If the expression captures substrings within parentheses,
|
||||
tt(pcre_match) will set the array var($match) to those
|
||||
substrings, unless the tt(-a) option is given, in which
|
||||
case it will set the array var(arr).
|
||||
case it will set the array var(arr). Similarly, the variable
|
||||
var(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.
|
||||
)
|
||||
enditem()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue