Well on the second substitution it is clearly able to match "0+" after a 1. Well does that fit the rule? Why yes, the preceeding "1" is not "^", so it can match What to do? Why deny it a digit there. That gives us:
which does what you asked.s/(?<![\^\d])(?:\d+\+)//g; # ^^^^^^ <- was just \^ before
In reply to Re (tilly) 1: my substitution problem:
by tilly
in thread my substitution problem:
by Madams
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |