in reply to Re^2: incremental substitution w/ regexp only?
in thread incremental substitution w/ regexp only?
>perl -le"$_='abc1 abc2 abc3 abc4 abc5'; s/1/++$i/eg; print" abc1 abc2 abc3 abc4 abc5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: incremental substitution w/ regexp only?
by AnomalousMonk (Archbishop) on Dec 25, 2008 at 16:19 UTC |