Instead of removing the first two occurrences, why not just remove the first occurrence, twice?
s/(^|/)\d_//; s/(^|/)\d_//;
In reply to Re: changing only the first two matches of a regex
by larryl
in thread changing only the first two matches of a regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |