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 22:00
Subject:
Re: A Regular Expression Problem in Perl 5.28
Message ID:
E1phHMV-0004nX-NO@wb5agz.lan
Uri Guttman <uri@perlhunter.com> writes:
> yes, but he kept the {5,} repeat count. so i just kept it too.

	Now that I know how this works, I will probably change to
{4,} as this would match 4 or more digits.  From reading the
documentation, {4} means 4 and only 4.  {4,6} means 4 but nothing
else except 6. {N,} means N as a low limit but any number higher.

	This is an application that only I am interested in so,
if I need to modify things, I can without causing any grief.

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