UNPKG

ts-regex-builder

Version:

Maintainable regular expressions for TypeScript and JavaScript.

17 lines (16 loc) 474 B
import type { EncodedRegex, RegexSequence } from '../types'; /** * Negative lookahead assertion. * * A negative lookahead assertion is a zero-width assertion that matches a group of characters only if it is not followed by a specific group of characters. * * @example * ```ts * negativeLookahead("a"); * // /(?=a)/ * * negativeLookahead(["a", "b", "c"]); * // /(?=abc)/ * ``` */ export declare function negativeLookahead(sequence: RegexSequence): EncodedRegex;