Just to add a note to this: while it may work in this case, in the general case, one should be careful with assuming how often a (?{...}) gets called, as is stated at the top of its documentation.
In reply to Re^2: Perl substitute with the nth match
by haukex
in thread Perl substitute with the nth match
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |