File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,12 +26,19 @@ function%pcre
2626into suitable invocations of the [ Re library] [ re ] , and similar for
2727` match%pcre ` . The patterns are plain strings of the form accepted by
2828` Re_pcre ` , with the following additions:
29-
29+
3030 - ` (?<var>...) ` defines a group and binds whatever it matches as ` var ` .
3131 The type of ` var ` will be ` string ` if the match is guaranteed given that
3232 the whole pattern matches, and ` string option ` if the variable is bound
3333 to or nested below an optionally matched group.
3434
35+ - ` (?&var) ` gets substituted by the value of the ` %pcre ` extended string variable named ` var ` . Doesn't bind.
36+
37+ - ` (?&v:qname) ` is a shortcut for ` (?<v>(?&qname)) ` .
38+
39+ - ` (U?<var>) ` gets substituted by the value of the globally defined string variable named ` var ` ,
40+ and does not bind its match to any name.
41+
3542 - ` ?<var> ` at the start of a pattern binds group 0 as ` var : string ` .
3643 This may not be the full string if the pattern is unanchored.
3744
You can’t perform that action at this time.
0 commit comments