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