title: Understanding the (\D\d)+ Regex pattern in Python
body: <p>I'm spending some time trying to understand the Regex terminology in Python 3 and I can't figure out how <code>(\D\d)+</code> works here.</p>
  
  <p>I know that <code>\D</code> represents a nondigit character and that <code>\d</code> represents a digit character, and also that the plus sign <code>+</code> represents one or more repetitions of the preceding expression. But when I try the following code, I simply can't wrap my head around the result.</p>
  
  <p>Input:</p>
  
  <pre><code>import re
  text = "a1 b2 c3 d4e5f6"
  regex = re.findall(r'(\D\d)+',text)
  print(regex)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>['a1', 'b2', 'c3', 'f6']
  </code></pre>
  
  <p>Since that the regex includes a plus sign, shouldn't it also output <code>d4e5f6</code> as they are a sequence of nondigit and digit characters? </p>