Function oneOrMoreLazily

  • Match a token 1 to infinite times, trying to match as short as possible.

    oneOrMoreLazily is a short form of oneOrMore.lazily. See the documentation of oneOrMore for more details.

    Parameters

    • literal: string

    Returns RegExpToken

    Example

    oneOrMoreLazily`foo`
    oneOrMore.lazily`foo`

    RegExp equivalent:

    /(?:foo)+?/
    
  • Match a token 1 to infinite times, trying to match as short as possible.

    oneOrMoreLazily is a short form of oneOrMore.lazily. See the documentation of oneOrMore for more details.

    Parameters

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

    Returns RegExpToken

    Example

    oneOrMoreLazily`foo`
    oneOrMore.lazily`foo`

    RegExp equivalent:

    /(?:foo)+?/
    
  • Match a token 1 to infinite times, trying to match as short as possible.

    oneOrMoreLazily is a short form of oneOrMore.lazily. See the documentation of oneOrMore for more details.

    Parameters

    Returns RegExpToken

    Example

    oneOrMoreLazily`foo`
    oneOrMore.lazily`foo`

    RegExp equivalent:

    /(?:foo)+?/
    

Generated using TypeDoc