title: Regular Expression with python need to select closest section
body: <p>Need some help with RegEx over python.
  I have this text:</p>
  
  <pre><code>part101_add(
      name = "part101-1",
      dev2_serial = "dev_l622_01",
      serial_port = "/dev/tty-part101-1",
      yok_serial = "YT8388"
  )
  yok_tar_add("YT8388", None)
  part2_add(
      name = "part2-1",
      serial_number = "SERIALNUMBER",
      serial_port = "/dev/tty-part2-1",
      yok_serial = "YT03044",
      yok_port_board = "N"
  )
  yok_tar_add("YT03044", None)
  </code></pre>
  
  <p>I need to select all part*_add and its content.
  for example:</p>
  
  <pre><code>part101_add:
  
  name = "part101-1",
  dev2_serial = "dev_l622_01",
  serial_port = "/dev/tty-part101-1",
  yok_serial = "YT8388"
  
  part2_add:
  serial_number = "SERIALNUMBER",
  serial_port = "/dev/tty-part2-1",
  yok_serial = "YT03044",
  yok_port_board = "N"
  </code></pre>
  
  <p>problem is that im unable to separate the results.
  when using this pattern:</p>
  
  <pre><code>regex = r"(.*?_add)\([\s\S.]*\)"
  </code></pre>
  
  <p>Thanks for your help.</p>