in reply to Re^2: How to continue numbering after a regular expression has been found
in thread How to continue numbering after a regular expression has been found

There is even an easy way :-)

push the $counter to one array and the $_ to another instead of (or after the) print

Rata