Function notCharIn

  • Match a character not listed in the group. A hyphen denotes a range of characters, such as a-z.

    notCharIn is a short form of not.charIn. For details regarding character classes, see the documentation of charIn.

    Parameters

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

    Returns RegExpToken & CharClassFunction

    Example

    notCharIn`a-z_-`
    not.charIn`a-z_-`
    notCharIn('a-z', '_-')
    notCharIn`a-z``_-`

    RegExp equivalent:

    /[^a-z_-]/
    
  • Match a character not listed in the group. A hyphen denotes a range of characters, such as a-z.

    notCharIn is a short form of not.charIn. For details regarding character classes, see the documentation of charIn.

    Parameters

    Returns RegExpToken & CharClassFunction

    Example

    notCharIn`a-z_-`
    not.charIn`a-z_-`
    notCharIn('a-z', '_-')
    notCharIn`a-z``_-`

    RegExp equivalent:

    /[^a-z_-]/
    

Generated using TypeDoc