title: `re` module match text between two pairs of brackets in Python3
body: <p>For example, I have a string like <code>'(10 + 20) / (10 + 20)'</code>. </p>
  
  <p>And now I want to match <code>(10 + 20)</code>. So I write a script like this:</p>
  
  <pre><code>text = '(10 + 20) / (10 + 20)'                                                                                                          
  test1 = re.findall(r'(.*)', text)                                            
  test2 = re.findall(r'(.+?)', text)                                           
  
  for i in test1:                                                              
      print(i, end='')                                                         
  else:                                                                        
      print()                                                                  
  
  for i in test2:                                                              
      print(i, end='')                                                         
  else:                                                                        
      print()       
  </code></pre>
  
  <p>And the output is this:</p>
  
  <pre><code>(10 + 20) / (10 + 20)                                                                                                                       
  (10 + 20) / (10 + 20)
  </code></pre>
  
  <p>I don't understand, doesn't <code>.+?</code> not greedy?</p>