title: Why isn't the regular expression's "non-capturing" group working?
body: <p>In the snippet below, the <strong>non-capturing group <code>"(?:aaa)"</code></strong> should be ignored in the matching result,</p>
  
  <p>The result should be <code>"_bbb"</code> only.<br></p>
  
  <p>However, I get <code>"aaa_bbb"</code> in the matching result; only when I specify group(2) does it show <code>"_bbb"</code>.</p>
  
  <pre><code>&gt;&gt;&gt; import re
  &gt;&gt;&gt; s = "aaa_bbb"
  &gt;&gt;&gt; print(re.match(r"(?:aaa)(_bbb)", s).group())
  
  aaa_bbb
  </code></pre>