Skip to content

Commit 2b8c2d6

Browse files
committed
Readme tweaks
1 parent e62843a commit 2b8c2d6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# regex-recursion ♾️
1+
# regex-recursion 🪆
22

33
[![npm version][npm-version-src]][npm-version-href]
44
[![npm downloads][npm-downloads-src]][npm-downloads-href]
@@ -9,7 +9,7 @@ This is an official plugin for [Regex+](https://github.com/slevithan/regex) (it
99
> [!NOTE]
1010
> Regex flavors vary on whether they offer infinite or fixed-depth recursion. For example, recursion in Oniguruma uses a default depth limit of 20.
1111
12-
Recursive matching is added to a regex via the following syntax. The recursion depth limit is provided in place of *`N`*.
12+
Recursive matching is added to a regex via the following syntax. The recursion depth limit is provided in place of *N*.
1313

1414
- `(?R=N)` — Recursively match the entire regex at this position.
1515
- `\g<name&R=N>` or `\g<number&R=N>` — Recursively match the contents of the group referenced by name or number at this position. The `\g<…>` subroutine must be *within* the referenced group.
@@ -23,7 +23,7 @@ Details:
2323

2424
- [Install and use](#️-install-and-use)
2525
- [Examples](#-examples)
26-
- [Direct use, without Regex+](#️-direct-use-without-regex)
26+
- [Standalone use](#️-standalone-use)
2727

2828
## 🕹️ Install and use
2929

@@ -163,7 +163,9 @@ const palindromeWords = regex({flags: 'gi', plugins: [recursion]})`
163163
// → ['Racecar', 'ABBA']
164164
```
165165

166-
## ⛓️‍💥 Direct use, without Regex+
166+
## ⛓️‍💥 Standalone use
167+
168+
Following is an example of using this library standalone, without Regex+.
167169

168170
```js
169171
import {recursion} from 'regex-recursion';

0 commit comments

Comments
 (0)