in reply to Re: Length of first captured match
in thread Length of first captured match

${[...]}[0]
is much less efficient and harder to read than the list slice
(...)[0]
the OP proposed. The advatage is that yours can be embedded into an interpolating string.