File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,19 @@ function%pcre
26
26
into suitable invocations of the [ Re library] [ re ] , and similar for
27
27
` match%pcre ` . The patterns are plain strings of the form accepted by
28
28
` Re_pcre ` , with the following additions:
29
-
29
+
30
30
- ` (?<var>...) ` defines a group and binds whatever it matches as ` var ` .
31
31
The type of ` var ` will be ` string ` if the match is guaranteed given that
32
32
the whole pattern matches, and ` string option ` if the variable is bound
33
33
to or nested below an optionally matched group.
34
34
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
+
35
42
- ` ?<var> ` at the start of a pattern binds group 0 as ` var : string ` .
36
43
This may not be the full string if the pattern is unanchored.
37
44
You can’t perform that action at this time.
0 commit comments