Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
On 09/10/2018 08:15 AM, Ralph Mellor wrote: Hi Todd, What are the rules for what goes inside and what goes outside? Also, do y have a link to what the various ":x" commands are that I can use? See https://docs.perl6.org/language/regexes#Adverbs The first section explains the two

Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
On 09/10/2018 08:36 AM, Laurent Rosenfeld via perl6-users wrote: Yes, copy and paste error on the last code snippet. say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; Cheers, Laurent. Now that is down right cleaver! I can change my mind as I go. Thank you!

Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
Hi Laurent, Thank you! Another weapon in my tool box! Question: this confused me when I first look at it. I am use to the ":x" command being outside the first "/". For instance s:g/ What are the rules for what goes inside and what goes outside? Also, do y

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
Yes, copy and paste error on the last code snippet. say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; Cheers, Laurent. Le lun. 10 sept. 2018 à 16:54, yary a écrit : > > say "Yes" if "2018 xJul 7" ~~ m:i/j :i ul/; > you mean > > say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; > > m/.../ - not m:i at the

Re: case insensitive "contains"?

2018-09-10 Thread Ralph Mellor
Hi Todd, > What are the rules for what goes inside and what goes outside? > Also, do y have a link to what the various ":x" commands are that I can use? > See https://docs.perl6.org/language/regexes#Adverbs The first section explains the two types of "adverb". "regex adverbs" like `:i` can go

Re: case insensitive "contains"?

2018-09-10 Thread yary
> say "Yes" if "2018 xJul 7" ~~ m:i/j :i ul/; you mean say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; m/.../ - not m:i at the start! -y On Mon, Sep 10, 2018 at 4:54 AM, Laurent Rosenfeld via perl6-users < perl6-users@perl.org> wrote: > Hi Todd, > > you may use: > > say "Yes" if "2018 xJul 7" ~~

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
Hi Todd, you may use: say "Yes" if "2018 xJul 7" ~~ /:i jul/; or: say "Yes" if "2018 xJul 7" ~~ m:i/jul/; In the second case, the adverb will apply to the whole pattern. In the first case, it will start to apply from the point where the adverb is. In this specific example, those two code

Re: RFE: contains documentation

2018-09-10 Thread JJ Merelo
Far as I can tell, it's DRM free and those who have supported it in kickstarter, like me, got PDF, epub and .mobi. I don't think it's a big problem if you borrow it from one of us. Just drop me (or I guess any other) an email El lun., 10 sept. 2018 a las 9:29, ToddAndMargo () escribió: > > > >

Re: RFE: contains documentation

2018-09-10 Thread ToddAndMargo
On 10/09/18 10:00, ToddAndMargo wrote: On 09/09/2018 06:21 PM, Peter Scott wrote: "Learning Perl 6" by brian d foy https://www.amazon.com/Learning-Perl-Keeping-Impossible-Within-ebook/dp/B07GT9KPP1/ref=sr_1_1_twi_kin_2 $30 U$D for the Kindle edition On 09/10/2018 12:07 AM, Richard