title: Location, lon lat, parsing with python
body: <p>I've got some lon lat points that are in a string format. Example data below.</p>
  
  <p><a href="https://i.stack.imgur.com/y7uTm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y7uTm.png" alt="enter image description here"></a></p>
  
  <p>Now, I want to use these and put them into two different lists, for lon and lat respectively.</p>
  
  <p>However this data is all in a string format, within a single list structure. I think this means I need to use regex?</p>
  
  <p>I've tried using this code as below,</p>
  
  <pre><code>re.sub("^(\+|-)?(?:90(?:(?:\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,6})?))$"
  ,"",exampledatalatlon[1])
  </code></pre>
  
  <p>But i can't get it to work. Does anyone know a quick and easy way to just reformat it into integer format (int() won't work) given I've tried these methods already?</p>
  
  <p>cheers</p>