${[...]}[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.
In reply to Re^2: Length of first captured match
by ikegami
in thread Length of first captured match
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |