|
Majordomo-Users (May 1997) |
On Mon, 5 May 1997, Peter Bostrom wrote: > #substitute ends with 0-9 and = to nothing, and vice versa > $_=~s/=[0-9][0-9]$//; > $_=~s/=[0-9]$//; > $_=~s/=$//; So, perhaps this would work: s/=\d?\d?$//; That should replace '=' followed by 0-2 digits, at the end of a line, with nothing, using one substitution instead of three. Kendall Follow-Ups:
References:
|