|Perl: the Markov chain saw|
my substitution problem:by Madams (Monk)
|on Feb 13, 2001 at 07:35 UTC||Need Help??|
Madams has asked for the
wisdom of the Perl Monks concerning the following question:
I have a string,and a substitution:
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?)