Fwd: delimiters with more than one character? ...

2020-07-18 Thread William Michels via perl6-users
| raku -pe 's:g/\\ \| / \n /' > > 34 + 45 > > abc > > 1 2 3 > > c > > 123abc > > > -y > > -y > > > On Thu, Jul 16, 2020 at 2:51 PM William Michels via perl6-users < > perl6-us...@perl.org> wrote: > >> -- Forwarded

Re: delimiters with more than one character? ...

2020-07-17 Thread yary
I see that backslash escapes are > removed automatically (the second command only has to split on the pipe > character). So maybe this isn't a general solution, but it works for the > example given. > > https://raku.org/ > > HTH, Bill. > > > > > > On Thu, Jul 16,

Re: delimiters with more than one character? ...

2020-07-16 Thread William Michels via perl6-users
-- Forwarded message - Date: Thu, Jul 16, 2020 at 11:42 AM Subject: Re: delimiters with more than one character? To: I've slowly been learning the Raku programming language (AKA Perl6), and while I'm far from being an expert, this is the first solution I came up with (raku one

Re: delimiters with more than one character? ...

2020-07-16 Thread Marcel Timmerman
Subject: delimiters with more than one character? ... To: Debian Users ML I have a string delimited by two characters: "\|" _S=" 34 + 45 \| abc \| 1 2 3 \| c\|123abc " which then I need to turn into a array looking like: _S_AR=( " 34 + 45" " abc" &

Re: delimiters with more than one character? ...

2020-07-16 Thread Parrot Raiser
Subject: delimiters with more than one character? ... > To: Debian Users ML > > > I have a string delimited by two characters: "\|" > > _S=" 34 + 45 \| abc \| 1 2 3 \| c\|123abc " > > which then I need to turn into a array looking like: > >

Fwd: delimiters with more than one character? ...

2020-07-16 Thread Tom Browder
An opportunity for Raku golfers to show off Raku on the Debian users list. Best regards, -Tom -- Forwarded message - From: Albretch Mueller Date: Tue, Jul 14, 2020 at 07:52 Subject: delimiters with more than one character? ... To: Debian Users ML I have a string delimited