Function notBehind

  • Wrap the given token in a negative lookbehind.

    notBehind is a short form of not.behind. See the documentation of behind for more details.

    Parameters

    • literal: string

    Returns RegExpToken

    Example

    notBehind`foo`
    not.behind`foo`
    notBehind.exactly`foo`
    notBehind('foo')

    RegExp equivalent:

    /(?<!foo)/
    
  • Wrap the given token in a negative lookbehind.

    notBehind is a short form of not.behind. See the documentation of behind for more details.

    Parameters

    • template: TemplateStringsArray
    • Rest ...args: unknown[]

    Returns RegExpToken

    Example

    notBehind`foo`
    not.behind`foo`
    notBehind.exactly`foo`
    notBehind('foo')

    RegExp equivalent:

    /(?<!foo)/
    
  • Wrap the given token in a negative lookbehind.

    notBehind is a short form of not.behind. See the documentation of behind for more details.

    Parameters

    Returns RegExpToken

    Example

    notBehind`foo`
    not.behind`foo`
    notBehind.exactly`foo`
    notBehind('foo')

    RegExp equivalent:

    /(?<!foo)/
    

Generated using TypeDoc