develooper Front page | perl.perl6.users | Postings from May 2018

Need match character help

Thread Next
From:
ToddAndMargo
Date:
May 15, 2018 11:49
Subject:
Need match character help
Message ID:
9ba33052-62d8-5419-ed9f-2a8f8ed66fdc@zoho.com
Hi All,

This should be a "no".  What am I doing wrong?

$ perl6 -e 'my $x="rd"; if $x~~/<[rc]+[a]+[b]+[.]>/ {say "yes"}else{say 
"no"}'
yes


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About