Skip to content

Commit 3bf1758

Browse files
committed
update README for variable substitution feature
1 parent d97007d commit 3bf1758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ into suitable invocations of the [Re library][re], and similar for
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+
3539
- `?<var>` at the start of a pattern binds group 0 as `var : string`.
3640
This may not be the full string if the pattern is unanchored.
3741

0 commit comments

Comments
 (0)