I was in IDLE, and decided to use regex to sort out a string. But when I typed in what the online tutorial told me to, all it would do was print:
<_sre.SRE_Match object at 0x00000000031D7E68>
import re reg = re.compile("[a-z]+8?") str = "ccc8" print(reg.match(str))
<_sre.SRE_Match object at 0x00000000031D7ED0>
Could anybody tell me how to actually print the result?