title: How to print regex match results in python 3?
body: <p>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:</p>
  
  <pre><code>&lt;_sre.SRE_Match object at 0x00000000031D7E68&gt;
  </code></pre>
  
  <p>Full program:</p>
  
  <pre><code>import re
  reg = re.compile("[a-z]+8?")
  str = "ccc8"
  print(reg.match(str))
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>&lt;_sre.SRE_Match object at 0x00000000031D7ED0&gt;
  </code></pre>
  
  <p>Could anybody tell me how to actually print the result?</p>