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

I need regex help

Thread Next
From:
ToddAndMargo
Date:
May 11, 2018 03:56
Subject:
I need regex help
Message ID:
2b86a6b8-8b6a-0f85-751a-7e21eff02829@zoho.com
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 please use ** 
N..M (or ** N..*)
at /home/linuxutil/GetUpdates.pl6:425
------>         $dir_entry      ~~ 
m/.*?(\d{1,4}⏏\D\d{1,4}\D\d{1,4}).*{$Extension}/;


What am I doing wrong?


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