title: Python simple brackets parser
body: <p>I basically have a file with this structure: </p>
  
  <pre><code>root \
  {
    field1 {
      subfield_a {
        "value1"
      }
      subfield_b {
        "value2"
      }
      subfield_c {
        "value1"
        "value2"
        "value3"
      }
      subfield_d {
      }
    }
    field2 {
      subfield_a {
        "value1"
      }
      subfield_b {
        "value1"
      }
      subfield_c {
        "value1"
        "value2"
        "value3"
        "value4"
        "value5"
      }
      subfield_d {
      }
    }
  }
  </code></pre>
  
  <p>I want to parse this file with python to get a multidimensional array  that contains all the values of a specific subfield (for examples subfield_c). E.g. :</p>
  
  <pre><code>tmp = magic_parse_function("subfield_c",file)
  print tmp[0] # [ "value1", "value2", "value3"]
  print tmp[1] # [ "value1", "value2", "value3", "value4", "value5"]
  </code></pre>
  
  <p>I'm pretty sure I've to use the pyparsing class, but I don't where to start to set the regex (?) expression. Can someone give me some pointers ? </p>