title: Is it possible to get an array as one matching group in Python regex
body: <p>I have the following string:</p>
  
  <blockquote>
    <p>Members: {'name': A, 'age': 30, 'gender': M, 'height': 1.56}, {'name': C, 'age': 20, 'gender': M, 'height': 1.8}, {'name': H, 'age': 45, 'gender': M, 'height': 1.97}, {'name': D, 'age': 23, 'gender': M, 'height': 1.68}; Place: 1//Members: {'name': S, 'age': 33, 'gender': M, 'height': 1.4}, {'name': C, 'age': 19, 'gender': M, 'height': 1.67}, {'name': A, 'age': 44, 'gender': M, 'height': 1.92}, {'name': C, 'age': 33, 'gender': M, 'height': 1.57}; Place: 2</p>
  </blockquote>
  
  <p>I would like to know if it is possible/how to have a match like:</p>
  
  <pre><code>[['30', '20', '45', '23', '1'], ['33', '19', '44', '33', '2']] or
  
  [(['30', '20', '45', '23'], '1'), (['33', '19', '44', '33'], '2')]
  </code></pre>
  
  <p>Or something similar (the resulting structure doesn't really matter) I just need to have all the ages from one Place. I know that I can iterate doing split and apply regex for each part or similar solution, but my question is if there's a way to do it once (ONE single step) using regex...</p>
  
  <p>I would use findall to get all the "full matches". My issue is to get the first parameter of the "tuple" as an array...</p>
  
  <p>If I do:</p>
  
  <pre><code>r = re.compile("'age': (\d+).*?; Place: (\d+).*?//")
  g = r.findall("Members: {'name': A, 'age': 30, 'gender': M, 'height': 1.56}, {'name': C, 'age': 20, 'gender': M, 'height': 1.8}, {'name': H, 'age': 45, 'gender': M, 'height': 1.97}, {'name': D, 'age': 23, 'gender': M, 'height': 1.68}; Place: 1//Members: {'name': S, 'age': 33, 'gender': M, 'height': 1.4}, {'name': C, 'age': 19, 'gender': M, 'height': 1.67}, {'name': A, 'age': 44, 'gender': M, 'height': 1.92}, {'name': C, 'age': 33, 'gender': M, 'height': 1.57}; Place: 2")
  </code></pre>
  
  <p>I am only able to get the first age, and then the place...</p>
  
  <pre><code>g
  [('30', '1')]
  </code></pre>