You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** this is a positive lookbehind. Make sure to check [browser support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#browser_compatibility) as not all browsers support lookbehinds (notably Safari) */
6
9
after: (input: string|Input)=>Input<T>
10
+
/** this is a positive lookahead */
7
11
before: (input: string|Input)=>Input<T>
12
+
/** these is a negative lookbehind. Make sure to check [browser support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#browser_compatibility) as not all browsers support lookbehinds (notably Safari) */
8
13
notAfter: (input: string|Input)=>Input<T>
14
+
/** this is a negative lookahead */
9
15
notBefore: (input: string|Input)=>Input<T>
10
16
times: {
17
+
/** repeat the previous pattern an exact number of times */
11
18
(number: number): Input<T>
19
+
/** specify a range of times to repeat the previous pattern */
12
20
between: (min: number,max: number)=>Input<T>
13
21
}
22
+
/** this defines the entire input so far as a named capture group. You will get type safety when using the resulting RegExp with `String.match()` */
14
23
as: <Kextendsstring>(key: K)=>Input<T|K>
24
+
/** this allows you to match beginning/ends of lines with `at.lineStart()` and `at.lineEnd()` */
15
25
at: {
16
26
lineStart: ()=>Input<T>
17
27
lineEnd: ()=>Input<T>
18
28
}
19
29
toString: ()=>string
20
30
}
21
31
32
+
/** This matches any character in the string provided */
0 commit comments