Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$str='kklmn; $str=~ s/(?=(kkl))(?(1)\g1|mn)/***/g; print "$str\n"; ***mn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Doing by global regex does not work as on debug
by AnomalousMonk (Archbishop) on Dec 05, 2021 at 02:46 UTC | |
|
Re: Doing by global regex does not work as on debug
by LanX (Saint) on Dec 04, 2021 at 23:22 UTC | |
|
Re: Doing by global regex does not work as on debug
by Anonymous Monk on Dec 05, 2021 at 18:08 UTC | |
by LanX (Saint) on Dec 05, 2021 at 18:46 UTC |