@@ -91,7 +91,7 @@ const currencyAmount = buildRegExp([
91
91
]);
92
92
```
93
93
94
- See [ API document ] ( ./docs/API.md ) .
94
+ See [ API doc ] ( ./docs/API.md ) for more info .
95
95
96
96
### Regex Builders
97
97
@@ -100,28 +100,29 @@ See [API document](./docs/API.md).
100
100
| ` buildRegExp(...) ` | ` /.../ ` | Create ` RegExp ` instance |
101
101
| ` buildRegExp(..., { ignoreCase: true }) ` | ` /.../i ` | Create ` RegExp ` instance with flags |
102
102
103
+ See [ Regex Builder API doc] ( ./docs/API.md#builder ) for more info.
104
+
103
105
### Regex Constructs
104
106
105
107
| Construct | Regex Syntax | Notes |
106
108
| ------------------- | ------------ | ------------------------------- |
107
109
| ` capture(...) ` | ` (...) ` | Create a capture group |
108
110
| ` choiceOf(x, y, z) ` | ` x\|y\|z ` | Match one of provided sequences |
109
111
112
+ See [ Regex Constructs API doc] ( ./docs/API.md#constructs ) for more info.
113
+
110
114
### Quantifiers
111
115
112
116
| Quantifier | Regex Syntax | Description |
113
117
| ----------------------------------------------- | ------------ | -------------------------------------------------------------- |
114
118
| ` zeroOrMore(x) ` | ` x* ` | Zero or more occurence of a pattern |
115
- | ` zeroOrMore(x, { greedy: false }) ` | ` x*? ` | Zero or more occurence of a pattern (non-greedy) |
116
119
| ` oneOrMore(x) ` | ` x+ ` | One or more occurence of a pattern |
117
- | ` oneOrMore(x, { greedy: false }) ` | ` x+? ` | One or more occurence of a pattern (non-greedy) |
118
120
| ` optional(x) ` | ` x? ` | Zero or one occurence of a pattern |
119
- | ` optional(x, { greedy: false }) ` | ` x?? ` | Zero or one occurence of a pattern (non-greedy) |
120
121
| ` repeat(x, n) ` | ` x{n} ` | Pattern repeats exact number of times |
121
122
| ` repeat(x, { min: n, }) ` | ` x{n,} ` | Pattern repeats at least given number of times |
122
- | ` repeat(x, { min: n, greedy: false }) ` | ` x{n,}? ` | Pattern repeats at least given number of times (non-greedy) |
123
123
| ` repeat(x, { min: n, max: n2 }) ` | ` x{n1,n2} ` | Pattern repeats between n1 and n2 number of times |
124
- | ` repeat(x, { min: n, max: n2, greedy: false }) ` | ` x{n1,n2}? ` | Pattern repeats between n1 and n2 number of times (non-greedy) |
124
+
125
+ See [ Quantifiers API doc] ( ./docs/API.md#quantifiers ) for more info.
125
126
126
127
### Character classes
127
128
@@ -139,13 +140,17 @@ See [API document](./docs/API.md).
139
140
| ` charClass(...) ` | ` [...] ` | Union of multiple character classes |
140
141
| ` inverted(...) ` | ` [^...] ` | Negation of a given character class |
141
142
143
+ See [ Character Classes API doc] ( ./docs/API.md##character-classes ) for more info.
144
+
142
145
### Anchors
143
146
144
147
| Anchor | Regex Syntax | Description |
145
148
| --------------- | ------------ | ------------------------------------------------------------------------ |
146
149
| ` startOfString ` | ` ^ ` | Match the start of the string (or the start of a line in multiline mode) |
147
150
| ` endOfString ` | ` $ ` | Match the end of the string (or the end of a line in multiline mode) |
148
151
152
+ See [ Anchors API doc] ( ./docs/API.md#anchors ) for more info.
153
+
149
154
## Examples
150
155
151
156
See [ Examples document] ( ./docs/Examples.md ) .
0 commit comments