Practice with Match objects#

import re

email = r"((?:\w+\s*)*) <([^@]+@[^@]+)>"
m = re.fullmatch(email, "Michael Greenberg <michael.greenberg@stevens.edu>")