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
import type { EncodedRegex, RegexSequence } from '../types';
/**
* Negative lookbehind assertion.
*
* A negative lookbehind assertion is a zero-width assertion that matches a group of characters only if it is not preceded by a specific group of characters.
*
* @example
* ```ts
* negativeLookbehind("a");
* // /(?<!a)/
*
* negativeLookbehind(["a", "b", "c"]);
* // /(?<!abc)/
* ```
*/
export function negativeLookbehind(sequence: RegexSequence): EncodedRegex {