title: Python: Splitting by certain pattern
body: <p>I have the following </p>
  
  <pre><code>str = '[5.955894, 45.817792], [10.49238, 45.817792], [10.49238, 47.808381], [5.955894, 47.808381]'
  </code></pre>
  
  <p>I want to split it so that I have an array of strings like</p>
  
  <p><code>['[5.955894, 45.817792]', '[10.49238, 45.817792]', ...]</code></p>
  
  <p>So that the [...] objects are elements of the array. It is important that the enclosing [ and ] are included. I've come so far: </p>
  
  <pre><code>re.split('\D,\s\D', str)
  </code></pre>
  
  <p>But that gives me:</p>
  
  <pre><code>['[5.955894, 45.817792', '10.49238, 45.817792', '10.49238, 47.808381', '5.955894, 47.808381]']
  </code></pre>
  
  <p>Not really what I want. </p>