in reply to Re: Replacing characters in a line
in thread Replacing characters in a line
s/^(.{21})D/$1X/;
does not work, while thiss/^(?<=.{21})D/X/;
does (but donīt use this, itīs unsafe)?s/(?<=.{21})D/X/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Replacing characters in a line
by manav (Scribe) on Mar 04, 2005 at 13:19 UTC | |
by holli (Abbot) on Mar 04, 2005 at 13:32 UTC | |
by pelagic (Priest) on Mar 04, 2005 at 13:23 UTC |