Function group

  • Wrap the given token in a non-capture group.

    Parameters

    • literal: string

    Returns RegExpToken

    Example

    group`foo`
    group.exactly`foo`
    group('foo')

    RegExp equivalent:

    /(?:foo)/
    
  • Wrap the given token in a non-capture group.

    Parameters

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

    Returns RegExpToken

    Example

    group`foo`
    group.exactly`foo`
    group('foo')

    RegExp equivalent:

    /(?:foo)/
    
  • Wrap the given token in a non-capture group.

    Parameters

    Returns RegExpToken

    Example

    group`foo`
    group.exactly`foo`
    group('foo')

    RegExp equivalent:

    /(?:foo)/
    

Generated using TypeDoc