Using the fc method is certainly a good way to do case insensitive string comparisons, but you may at this point also use a regex with the :i (ignore case) adverb.
> if "2018 xJul 7" ~~ /:i jul/ {say "Yes";} Yes Le sam. 8 sept. 2018 à 00:56, ToddAndMargo <toddandma...@zoho.com> a écrit : > On 09/07/2018 03:49 PM, ToddAndMargo wrote: > > Hi All, > > > > How do I use "contains" without regard to case? > > > > $ p6 'if "2018 Jul 7".contains( "jul", 3 ) {say "Yes";}' > > > > > > Many thanks, > > -T > > > The chat line helped me figure it out: > > $ p6 'if "2018 Jul 7".fc.contains( "jul".fc ) {say "Yes";}' > Yes > > $ p6 'if "2018 xJul 7".fc.contains( "jul".fc ) {say "Yes";}' > Yes > > p6 'if "2018 xul 7".fc.contains( "jul".fc ) {say "Yes";}' > <nothing> >