title: How do I put the values between brackets spanning multiple lines into a list in python?
body: <p>I'm fairly new to python and regex but I'm trying to figure out a way to do this.</p>
  
  <p>I have a file that looks like this:</p>
  
  <pre><code>random text up here
  
  group groupfoo {
  
      item_1
      item_2
      item_3
  }
  
  group groupbar {
      item_1
      item_2
      item_3
  }
  
  random text down here
  </code></pre>
  
  <p>There are several groups like this in this file.  The group names (groupfoo, groupbar, etc) are all unique.  I'd like to be able to somehow create tuples based on the group names and have the items as values.</p>
  
  <p>Please help!</p>
  
  <p>Thanks!</p>