but it does not print something proper.my $s = "AAAAAXXXXXXXAAAXXXXXAXXXXAAAAA"; $s =~s{A\K([^A]+)(?=A)} {"A" x length $1 }; print $s."\n";
In reply to Re^2: Replace all characters inbetween
by Anonymous Monk
in thread Replace all characters inbetween
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |