in reply to can u suggest a regex for this ?
If you want to do it with map:
map {/^cat\b/ .. /^\^cat\b/ ? s/^/#/r : $_} @a;
Greetings,
-jo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can u suggest a regex for this ?
by misterperl (Friar) on Feb 03, 2023 at 15:26 UTC | |
by jo37 (Curate) on Feb 03, 2023 at 15:43 UTC | |
by kcott (Archbishop) on Feb 03, 2023 at 17:04 UTC | |
by hippo (Archbishop) on Feb 03, 2023 at 15:54 UTC | |
by misterperl (Friar) on Feb 03, 2023 at 16:24 UTC | |
by hippo (Archbishop) on Feb 03, 2023 at 17:10 UTC | |
by xiaoyafeng (Deacon) on Feb 05, 2023 at 09:03 UTC | |
| |
by Fletch (Bishop) on Feb 03, 2023 at 16:31 UTC | |
by marto (Cardinal) on Feb 04, 2023 at 14:47 UTC | |
|
Re^2: can u suggest a regex for this ?
by misterperl (Friar) on Feb 03, 2023 at 16:20 UTC | |
by jo37 (Curate) on Feb 03, 2023 at 16:31 UTC |