AttributeError: 'NoneType' object has no attribute 'group' in python

I'm following Automatic boring stuf with python enter image description here

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum