title: Python strip() function - remove characters before/after string
body: <p>I am trying to remove everything in the following array except for the two numbers and the <code>,</code> in between.</p>
  
  <p>This is the array:
  <code>[array([[ 1948.97753906,  1058.23937988]], dtype=float32)]</code></p>
  
  <p>This array is always changing in size (can have 1 pair of numbers or 6 pairs etc) and being filled with different numbers, however, the format always remains the same.</p>
  
  <p>I currently have the below code, however, I think this is only working when there is one pair of numbers in the array??</p>
  
  <pre><code>final = str(self.lostfeatures).strip('[array([[ ').strip(']], dtype=float32)')
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>