On Mar 28, 2023, at 3:00 PM, Martin McCormick wrote:
>
> Uri Guttman 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
Uri Guttman 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,}
Uri Guttman 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.
> m
On 3/28/23 16:07, Uri Guttman wrote:
On 3/28/23 17:01, Martin McCormick wrote:
Uri Guttman writes:
why are you escaping the {}?? those are meta chars that are needed to
make
that a 5+ range. just delete the backslashes on them and it will work.
First, thank you but read on, please.
I
Uri Guttman writes:
> why are you escaping the {}?? those are meta chars that are needed to make
> that a 5+ range. just delete the backslashes on them and it will work.
First, thank you but read on, please.
I couldn't agree more. That should do it but when I
don't escape them, I
On 3/28/23 16:17, Martin McCormick wrote:
The string I am interested in testing for starts with 5
or 6 digits in a row and all I need to do is determine that the
first 5 or 6 characters are numbers Period. That's all.
my $regextest = '/^\d+\{5,\}/' ;
why are you escaping the {}?? th