I have a string,and a substitution: '11+b^10+s'=~s/(?<!\^)(?:\d+\+)//g; it should result in: 'b^10+s' NOT 'b^1s' ! it works if the number to the right of the "^" is less than 10 but not if greater. i want to strip all numbers followed by a "+" (including the "+") but NOT if they are preceeded by a "^".
what should i do? (regexi drive mike crazy...(is that the proper plural?)