Re: A Regular Expression Problem in Perl 5.28

Uri Guttman <[email protected]> Tue, 28 Mar 2023 17:36:29 -0400
Newsgroups gmane.comp.lang.perl.beginners
Organization Which Clone Am I?
Message-ID <[email protected]>
On 3/28/23 17:14, Sam wrote:
> On 3/28/23 16:07, Uri Guttman wrote:
>>
>> my $re = qr/^\d{5,}/ ;
>>
>> that should be all you need.
>>
>> read perlretut to learn more regex basics. you have escaping and 
>> quoting mistakes in the original.
>>
>> uri
>>
>
> I would think /^\d{5,6}/ would be what is needed? He wanted 5 or 6 
> digits.
>

yes, but he kept the {5,} repeat count. so i just kept it too.

-- 
https://uriguttman.blogspot.com/
A Long Strange Trip
A blog about computers, food, my life and silliness.


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/