Re: I need regex help

2018-05-11 Thread ToddAndMargo
On 05/11/2018 02:03 AM, Steve Mynott wrote: There is a perl 5 compatible option you can pass to perl 6 regexps. Not sure its 100% and I think it's based on perl5.10 but it could be useful if you wanted to gradually port perl 5 to perl 6. I am going to figure it out if it kills me!

Re: I need regex help

2018-05-11 Thread Steve Mynott
There is a perl 5 compatible option you can pass to perl 6 regexps. Not sure its 100% and I think it's based on perl5.10 but it could be useful if you wanted to gradually port perl 5 to perl 6. S On Fri, 11 May 2018 at 05:49, ToddAndMargo wrote: > On 05/10/2018 09:26 PM,

Re: I need regex help

2018-05-10 Thread ToddAndMargo
On 05/10/2018 09:26 PM, ToddAndMargo wrote: On 05/10/2018 09:13 PM, ToddAndMargo wrote: On Thu, May 10, 2018 at 11:56 PM, ToddAndMargo > wrote:     Hi All,     I am trying to convert this over from Perl5:     P5:     $dir_entry  =~

Re: I need regex help

2018-05-10 Thread ToddAndMargo
On 05/10/2018 09:13 PM, ToddAndMargo wrote: On Thu, May 10, 2018 at 11:56 PM, ToddAndMargo > wrote:     Hi All,     I am trying to convert this over from Perl5:     P5:     $dir_entry  =~ /.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*${Extension}/;

Re: I need regex help

2018-05-10 Thread ToddAndMargo
On Thu, May 10, 2018 at 11:56 PM, ToddAndMargo > wrote: Hi All, I am trying to convert this over from Perl5: P5: $dir_entry =~ /.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*${Extension}/; P6: $dir_entry ~~

Re: I need regex help

2018-05-10 Thread Brandon Allbery
Pretty much what it's telling you. Instead of the numbers in braces, it's the ** operator with a range after it: \d ** 1..4 (Remember that spaces do nothing in a P6 regex, so you can use them for readability or to separate the range from what follows, etc.) On Thu, May 10, 2018 at 11:56 PM,

I need regex help

2018-05-10 Thread ToddAndMargo
Hi All, I am trying to convert this over from Perl5: P5: $dir_entry =~ /.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*${Extension}/; P6: $dir_entry ~~ m/.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*{$Extension}/; $ perl6 -c GetUpdates.pl6 ===SORRY!=== Unsupported use of {N,M} as general quantifier; in Perl 6