You have only two sets of capture brackets so you only get two captures. Your suggestion of duplicating the counted match is probably the best answer in this case - that's what copy and paste is for in your editor :)
In reply to Re: capturing multiple repeated regex subparts
by GrandFather
in thread capturing multiple repeated regex subparts
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |