I followed the instructions for Lesson 7.3 PDF Extraction but it does not appear to be working properly. Attached is a screenshot of the results. Each email includes all of the phone numbers instead of one phone number that matches the email.
Not sure what the lesson objective is but it seems like you have a loop within a loop thats causing this. I would use the following regex.
(\S+@\S+)\s+(\d+)
for each match in matches:
email = match.groups(1).tostring
phone = match.groups(2).tostring