Syntax Error: Invalid syntax

Hi All,

I’m a beginner of python and have been doing some prac.
I’ve got this syntax error when I tried to use re.compile function.

then it gave me the syntax error for line 133.

Can someone please advise me what I did wrong?

“</match_word>” is not valid Python syntax. Perhaps you meant to include it in the string inside re.compile().

Thanks Aroberge!! it works!!
Happy X-mas and all the best for you and your family!!