Skip to content

Commit cbdebe5

Browse files
committed
Readme tweaks
1 parent 0bea703 commit cbdebe5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55

66
This is an official plugin for [Regex+](https://github.com/slevithan/regex) that adds support for recursive matching up to a specified max depth *N*, where *N* can be between 2 and 100. Generated regexes are native `RegExp` instances, and support all JavaScript regular expression features except numbered backreferences (support could be added in future versions).
77

8-
Recursive matching is added to a regex via one of the following:
8+
Recursive matching is added to a regex via one of the following (the recursion depth limit is provided in place of *`N`*):
99

1010
- `(?R=N)` — Recursively match the entire regex at this position.
1111
- `\g<name&R=N>` or `\g<number&R=N>` — Recursively match the contents of the group referenced by name or number at this position.
1212
- The `\g` subroutine must be *within* the referenced group.
1313

14-
The recursion depth limit is provided where *`N`* is shown above.
15-
16-
Recursive matching supports named captures and backreferences, which are independent per depth level. So e.g. `groups.name` on a match object is the value captured by group `name` at the top level of the recursion stack.
14+
Named captures and backreferences are supported within recursion, and are independent per depth level. So e.g. `groups.name` on a match object is the value captured by group `name` at the top level of the recursion stack.
1715

1816
## Install and use
1917

0 commit comments

Comments
 (0)