title: Extract fields and values from string in Python
body: <p>I'm trying to extract the field name and the value.From a string containing fields and values like the following one:</p>
  
  <pre><code>/location=(7966, 8580, 1) /station=NY /comment=Protein RadB n=1 Tax=M (SB / ATCC) RepID=A6USB2_METV
  </code></pre>
  
  <ul>
  <li><p>Each string can contain a different number of fields</p></li>
  <li><p>The field names will always be enclosed between '/' and '='</p></li>
  <li><p>The values can contain '/' and whitespace but not '='</p></li>
  </ul>
  
  <p>The expected result is something like:</p>
  
  <pre><code>['location','(7966, 8580, 1)','station','NY','comment','Protein RadB n=1 Tax=M (SB / ATCC) RepID=A6USB2_METV']
  </code></pre>
  
  <p>So far I've been able to extract the field names using:</p>
  
  <pre><code>&gt;&gt; re.findall(r"\/([a-z]*?)\=",string)
  ['location', 'station', 'comment']
  </code></pre>
  
  <p>And I've tried to use negative <code>?!</code> without success.</p>
  
  <p>Thanks in advance!</p>