Re: Test not working so well

2023-12-10 Thread ToddAndMargo via perl6-users
On 12/10/23 22:26, William Michels via perl6-users wrote: Inline: On Dec 10, 2023, at 12:25, ToddAndMargo via perl6-users wrote: On 12/9/23 22:49, William Michels via perl6-users wrote: f $x.match( / ^ <+[0..9] + [a..z]> ** 7 $ / ) { do something...}; What is the difference between    

Re: Stepping down from rakudo packaging for Debian

2023-12-10 Thread William Michels via perl6-users
Thank you for all your hard work, Dominique! Do we have any Debian users on the mailing-list willing to step up? Best Regards, Bill. > On Dec 2, 2023, at 07:01, Dominique Dumont wrote: > > Hello > > After 10 years of maintaining rakudo and it modules for Debian, I've never > really managed

Re: Test not working so well

2023-12-10 Thread William Michels via perl6-users
Inline: > On Dec 10, 2023, at 12:25, ToddAndMargo via perl6-users > wrote: > > On 12/9/23 22:49, William Michels via perl6-users wrote: >> f $x.match( / ^ <+[0..9] + [a..z]> ** 7 $ / ) { do something...}; > > > What is the difference between > ><+[0..9] > and > <[0..9] > Nothing,

Re: Test not working so well

2023-12-10 Thread ToddAndMargo via perl6-users
On 12/10/23 19:52, Kevin Pye wrote: On Mon, 11 Dec 2023, at 09:24, ToddAndMargo via perl6-users wrote: On 12/10/23 14:16, Kevin Pye wrote: Because you asked for a match with a string consisting entirely of exactly 8 digits. I am not following. :'( ^beginning of string <[0..9]>

Re: Test not working so well

2023-12-10 Thread Kevin Pye
On Mon, 11 Dec 2023, at 09:24, ToddAndMargo via perl6-users wrote: > On 12/10/23 14:16, Kevin Pye wrote: >> Because you asked for a match with a string consisting entirely of exactly 8 >> digits. > I am not following. :'( ^beginning of string <[0..9]> a digit ** 8 repeated exactly

Re: .contains question

2023-12-10 Thread ToddAndMargo via perl6-users
On 10 Dec 2023, at 21:36, ToddAndMargo via perl6-users wrote: Hi All, my Str $x="abc3defg"; if $x.contains( "a" || "b" || "3" ) { print "True\n"; } else { print "False\n" }; True Is there a way to tell .contains that you want to know if any of a sequence characters is in a string other

Re: .contains question

2023-12-10 Thread Elizabeth Mattijsen
my @letters = ; if $x.contains(any @letters) { ... > On 10 Dec 2023, at 21:36, ToddAndMargo via perl6-users > wrote: > > Hi All, > > my Str $x="abc3defg"; if $x.contains( "a" || "b" || "3" ) { print "True\n"; > } else { print "False\n" }; > True > > Is there a way to tell .contains that

Re: Test not working so well

2023-12-10 Thread ToddAndMargo via perl6-users
On 12/10/23 14:16, Kevin Pye wrote: On Mon, 11 Dec 2023, at 07:31, ToddAndMargo via perl6-users wrote: [0] > my Str $x="abc3defg"; if $x.match( / ^ <[0..9]> ** 8 $ / ) { print "True\n"; } else { print "False\n" }; False "3" is in the string. Why False? Because you asked for a match with

Re: Test not working so well

2023-12-10 Thread Kevin Pye
On Mon, 11 Dec 2023, at 07:31, ToddAndMargo via perl6-users wrote: > [0] > my Str $x="abc3defg"; if $x.match( / ^ <[0..9]> ** 8 $ / ) { print > "True\n"; } else { print "False\n" }; > False > > "3" is in the string. Why False? Because you asked for a match with a string consisting entirely

.contains question

2023-12-10 Thread ToddAndMargo via perl6-users
Hi All, my Str $x="abc3defg"; if $x.contains( "a" || "b" || "3" ) { print "True\n"; } else { print "False\n" }; True Is there a way to tell .contains that you want to know if any of a sequence characters is in a string other that repeating || over and over. Any [a..z] or [0..9] option?

Re: Test not working so well

2023-12-10 Thread ToddAndMargo via perl6-users
On 12/10/23 12:25, ToddAndMargo via perl6-users wrote: On 12/9/23 22:49, William Michels via perl6-users wrote: f $x.match( / ^ <+[0..9] + [a..z]> ** 7 $ / ) { do something...}; What is the difference between     <+[0..9] and    <[0..9] And     / ^ <+[0..9] + [a..z]> ** 7 $ / does

Re: Test not working so well

2023-12-10 Thread ToddAndMargo via perl6-users
On 12/9/23 22:49, William Michels via perl6-users wrote: f $x.match( / ^ <+[0..9] + [a..z]> ** 7 $ / ) { do something...}; What is the difference between <+[0..9] and <[0..9] And / ^ <+[0..9] + [a..z]> ** 7 $ / does this mean that both [0..9] AND [a..z] have to be present. In