title: Parsing repeated output using regex and returning multiple values for a single key
body: <p>I need to parse the following output :-</p>
  
  <pre>
  |------------------------------|-----------------|----------------------------------------|--------------------|------------|
  | Assembly name                | User name       | Path                                   | Start Time         | State      |
  |----------127.0.0.1-----------|-----------------|------Shell version 1.2.1-13-09-27------|--------------------|------------|
  |ng40core2                     |ng40             |/home/regress/ng40core2                 |2013-10-07 16:55:52 |Running     |
  |ng40core1                     |ng40             |/home/regress/ng40core1                 |2013-10-07 16:53:54 |Running     |
  |------------------------------|-----------------|----------------------------------------|--------------------|------------|
  </pre>
  
  <p>There can be multiple entries with different versions of ng40core in this output.</p>
  
  <p>I have written regex for single line,</p>
  
  <pre><code>regex_list = ['\s*',
  '\S+\s*',
  '\S+\s+Assembly\s+name\s+\S+\s+User\s+name\s+\S+\s+Path\s+\S+\s+Start\s+Time\s+\S+\s+State\s+\S+\s*',
  '\|\S+\d+\.\d+\.\d+\.\d+\S+Shell\s+version\s+.*\s*',
  '\|(?P&lt;ng40core_instance&gt;\S+)\s+\|(?P&lt;user_name&gt;\S+)\s+\|(?P&lt;path&gt;\S+)\s+\|(?P&lt;start_time&gt;\d+\-\d+\-\d+\s+\d+:\d+:\d+)\s+\|(?P&lt;state&gt;\w+)\s+\|\s*']
  </code></pre>
  
  <p>I want to get multiple values for a single key.
  <br> For "ng40core2" - I need username,path,start-time and state
  <br> Same way for "ng40core1" - I need username,path,start-time and state.</p>
  
  <p>It will be really helpful if you can suggest a way to achieve this.</p>