Natural Language Processing- compiling and matching


Hi! I have a question about the exercise in this part of the course.

I changed the character_1 to “0123456” and wanted to see whether .match() return the match object.
Surprisingly, result_1 did return the match object “0123456”. However, in .compile(), I was using \w{7} (which means it should be matching 7 word characters).

Can anyone please explain why is this happening?