On Sat, Sep 3, 2022 at 6:17 PM Marc Chantreux <m...@unistra.fr> wrote:
>
> ( A B C ) to ((A) (A B) (A B C)) ?

    <A B C>[^1,^2,^3]

I could share a generalization but it's pretty ugly and I also think
it makes more sense to do something like Bruce or Michel's solutions.
Here's my variation:

    .put for [\~] '/A/B/C' ~~ m:g { '/'? <-[/]>+ }

--
raiph

Reply via email to