Re: A Regular Expression Problem in Perl 5.28
"Martin McCormick" <[email protected]> Tue, 28 Mar 2023 16:48:00 -0500
| Newsgroups | gmane.comp.lang.perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
Uri Guttman <[email protected]> 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 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/