On Mon, 11 Dec 2023, at 09:24, ToddAndMargo via perl6-users wrote:
> On 12/10/23 14:16, Kevin Pye wrote:

>> Because you asked for a match with a string consisting entirely of exactly 8 
>> digits.

> I am not following.  :'(

^    beginning of string

<[0..9]> a digit

** 8 repeated exactly eight times

% end of string

so /^ <[0..9]> ** 8 $/ means exactly eight digits in the string, and nothing 
else. You have eight characters, but seven of them aren't digits, so the match 
fails.

Similarly in the second case.

Reply via email to