in reply to capturing multiple repeated regex subparts

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 :)


DWIM is Perl's answer to Gödel
  • Comment on Re: capturing multiple repeated regex subparts