Re: List in regexp

2019-09-03 Thread William Michels via perl6-users
Hi, > my $commasep ='abc,+'; abc,+ > say 'abc' ~~ / $( $commasep.split(',') ) /; Nil > say 'abc' ~~ / $( $commasep.split(',')[0] ) /; 「abc」 > say '123' ~~ / $( $commasep.split(',')[1] ) /; Nil > say 'abc' ~~ / $( $commasep.split(',')[0..*] ) /; Nil > say 'abc' ~~ / @( $commasep.split(',') )

Re: List in regexp

2019-09-03 Thread The Sidhekin
On Tue, Sep 3, 2019 at 8:37 AM yary wrote: > I see. And that's discussed here (had to really look for it): >> https://docs.perl6.org/language/regexes#Quoted_lists_are_LTM_matches >> At first I was looking further down in the "Regex interpolation" >> section, where it's also touched on, though I