Function not

  • Negate a given token, causing it to match anything other than the token itself.

    Negatable tokens: lineFeed, carriageReturn, backspace, tab, verticalWhitespace, formFeed, nullChar, octal, hex, unicode, word, digit, whitespace, charIn, lineStart, lineEnd, wordBoundary, ahead, behind

    Examples are provided in the documentation of the negatable tokens themselves.

    Parameters

    Returns RegExpToken

    Example

    not.lineFeed
    not(lineFeed)

    RegExp equivalent:

    /[^\n]/
    

Generated using TypeDoc