@@ -104,23 +104,30 @@ See [Regex Builder API doc](./docs/API.md#builder) for more info.
104
104
105
105
### Regex Constructs
106
106
107
- | Construct | Regex Syntax | Notes |
108
- | ------------------- | ------------ | ------------------------------- |
109
- | ` capture(...) ` | ` (...) ` | Create a capture group |
110
- | ` choiceOf(x, y, z) ` | ` x\|y\|z ` | Match one of provided sequences |
107
+ | Construct | Regex Syntax | Notes |
108
+ | ------------------------- | ------------ | ------------------------------------------- |
109
+ | ` choiceOf(x, y, z) ` | ` x\|y\|z ` | Match one of provided sequences |
110
+ | ` capture(...) ` | ` (...) ` | Create a capture group |
111
+ | ` lookahead(...) ` | ` (?=...) ` | Match subsequent text without consuming it |
112
+ | ` negativeLookhead(...) ` | ` (?!...) ` | Reject subsequent text without consuming it |
113
+ | ` lookbehind(...) ` | ` (?<=...) ` | Match preceding text without consuming it |
114
+ | ` negativeLookbehind(...) ` | ` (?<!...) ` | Reject preceding text without consuming it |
111
115
112
116
See [ Regex Constructs API doc] ( ./docs/API.md#constructs ) for more info.
113
117
118
+ > [ !NOTE]
119
+ > TS Regex Builder does not have a construct for non-capturing groups. Such groups are implicitly added when required.
120
+
114
121
### Quantifiers
115
122
116
- | Quantifier | Regex Syntax | Description |
117
- | ----------------------------------------------- | ------------ | ------------- ------------------------------------------------- |
118
- | ` zeroOrMore(x) ` | ` x* ` | Zero or more occurence of a pattern |
119
- | ` oneOrMore(x) ` | ` x+ ` | One or more occurence of a pattern |
120
- | ` optional(x) ` | ` x? ` | Zero or one occurence of a pattern |
121
- | ` repeat(x, n) ` | ` x{n} ` | Pattern repeats exact number of times |
122
- | ` repeat(x, { min: n, }) ` | ` x{n,} ` | Pattern repeats at least given number of times |
123
- | ` repeat(x, { min: n, max: n2 }) ` | ` x{n1,n2} ` | Pattern repeats between n1 and n2 number of times |
123
+ | Quantifier | Regex Syntax | Description |
124
+ | -------------------------------- | ------------ | ------------------------------------------------- |
125
+ | ` zeroOrMore(x) ` | ` x* ` | Zero or more occurence of a pattern |
126
+ | ` oneOrMore(x) ` | ` x+ ` | One or more occurence of a pattern |
127
+ | ` optional(x) ` | ` x? ` | Zero or one occurence of a pattern |
128
+ | ` repeat(x, n) ` | ` x{n} ` | Pattern repeats exact number of times |
129
+ | ` repeat(x, { min: n, }) ` | ` x{n,} ` | Pattern repeats at least given number of times |
130
+ | ` repeat(x, { min: n, max: n2 }) ` | ` x{n1,n2} ` | Pattern repeats between n1 and n2 number of times |
124
131
125
132
See [ Quantifiers API doc] ( ./docs/API.md#quantifiers ) for more info.
126
133
0 commit comments