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 "phrase" here in the English

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 cl

Re: Need match character help

2018-05-18 Thread ToddAndMargo
On 05/18/2018 04:30 AM, 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 time. Your current

Re: Need match character help

2018-05-18 Thread Timo Paulssen
On 18/05/18 05:02, Norman Gaywood wrote: > One question I have is what is the first | for? It was probably easy to miss, but the explanation was in the first mail I wrote. Feel free to reply again if you have more questions about this point, though. >> * you are allowed to put a | not only

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 time. I'm not sure wha

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 > the start of the s