in reply to Re: Replace all characters inbetween
in thread Replace all characters inbetween
but it does not print something proper.my $s = "AAAAAXXXXXXXAAAXXXXXAXXXXAAAAA"; $s =~s{A\K([^A]+)(?=A)} {"A" x length $1 }; print $s."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Replace all characters inbetween
by AnomalousMonk (Archbishop) on Jun 05, 2022 at 09:59 UTC | |
|
Re^3: Replace all characters inbetween
by AnomalousMonk (Archbishop) on Jun 05, 2022 at 10:10 UTC |