• Feathercrown@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    The capture group must be the same each time it repeats, so the number of characters stays the same. So X groups of Y characters = string of length X*Y. X and Y can be anything so any string length that can be made by multiplying two numbers-- which is every non-prime string length-- is matched. 0 and 1 are handled specially at the start.