Function getCapturingGroupNumber

  • Returns the one-based number of the given capturing group.

    This is the number needed to refer to the capturing group via backreferences.

    Parameters

    • group: CapturingGroup

    Returns number