title: Extracting Values from a String
body: <p>I am trying to extract values from a string, I have tried to get <code>re.match</code> working but have not had any luck. The string is:</p>
  
  <pre><code>'/opt/ad/bin$ ./ptzflip\r\nValue = 1800\r\nMin = 0\r\nMax = 3600\r\nStep = 1\r\n'
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code> map(int,re.search("Value\s*=\s*").group(1))
  </code></pre>
  
  <p>and also:</p>
  
  <pre><code>'/opt/ad/bin$ ./ptzflip\r\nValue = 1800\r\nMin = 0\r\nMax = 3600\r\nStep = 1\r\n'.split(' = ')
  </code></pre>
  
  <p>I am not sure what else to add or do. I want to retrieve the attributes <code>'Value, Max, Step'</code> and their values. Is there anyway to do this?</p>
  
  <p>Thanks for any help</p>