develooper Front page | perl.beginners | Postings from March 2023

Re: A Regular Expression Problem in Perl 5.28

Thread Previous | Thread Next
From:
Martin McCormick
Date:
March 28, 2023 21:48
Subject:
Re: A Regular Expression Problem in Perl 5.28
Message ID:
E1phHAe-0004lx-E6@wb5agz.lan
Uri Guttman <uri@perlhunter.com> writes:
> you also quoted the whole regex in '' but included the // which are the
> normal regex delimiters. remove the outer quotes.
> and use the qr// form for regexes.
> and you don't want the + after the \d as the {5,} is the count. you can't
> have both types of repeat counts.
> my $re = qr/^\d{5,}/ ;
> 
> that should be all you need.

	It was and it works now!  Thank you.

Martin

Thread Previous | 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