Skip to content

Commit 0fb64c3

Browse files
committed
Document the new syntax.
1 parent 47ec9ad commit 0fb64c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ regex matches `abc` at positions `0`, `1`, `2` and `3`.
361361
<pre class="rust">
362362
(exp) numbered capture group (indexed by opening parenthesis)
363363
(?P&lt;name&gt;exp) named (also numbered) capture group (allowed chars: [_0-9a-zA-Z.\[\]])
364+
(?&lt;name&gt;exp) named (also numbered) capture group (allowed chars: [_0-9a-zA-Z.\[\]])
364365
(?:exp) non-capturing group
365366
(?flags) set flags within current group
366367
(?flags:exp) set flags for exp (non-capturing)

0 commit comments

Comments
 (0)