UNPKG

ts-regex-builder

Version:

Maintainable regular expressions for TypeScript and JavaScript.

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