Re: Need match character help

2018-05-18 Thread The Sidhekin
On Thu, May 17, 2018 at 12:51 PM, Timo Paulssen wrote: > character classes are fundamentally the wrong thing for "phrases", since > they describe only a character. > You were right the first time. > Your current regex (before changing [gm] to ["gm"]) was expressing "from >

Re: Need match character help

2018-05-18 Thread Timo Paulssen
On 18/05/18 13:30, The Sidhekin wrote: > On Thu, May 17, 2018 at 12:51 PM, Timo Paulssen > wrote: > > character classes are fundamentally the wrong thing for "phrases", > since they describe only a character. > > >   You were right the first

Re: Need match character help

2018-05-18 Thread ToddAndMargo
On 05/18/2018 01:22 PM, ToddAndMargo wrote: To match particular characters. that should have been To match particular characters or phrases I am using "phrase" here in the English language meaning, not the programming meaning

Re: Need match character help

2018-05-18 Thread ToddAndMargo
On 05/15/2018 07:05 AM, Timo Paulssen wrote: On 15/05/18 13:49, ToddAndMargo wrote: 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 what you've put in your regex here is a character

Re: Need match character help

2018-05-18 Thread ToddAndMargo
On Fri, May 18, 2018 at 1:32 PM, ToddAndMargo > wrote: On 05/18/2018 01:22 PM, ToddAndMargo wrote: To match particular characters. that should have been To match particular characters or phrases I am using