title: How to extract certain parts of string?
body: <p>I have a string of the form</p>
  <pre><code> 11 1663.315780 6.045E-26 6.292E-01.06980.304 2724.04150.64-.009550          1 0 0          0 1 0  8  0  8        7  5  3      355243301884671724    17.0   15.0 
  </code></pre>
  <p>and would like to write this to a csv-File in the form</p>
  <pre><code>1,1,1663.31578,6.045e-26,0.6292,0.0698,0.304,2724.0415,0.64,-0.00955 
  </code></pre>
  <p>The only way I know how to do this in python is to to do something of the form</p>
  <pre><code>import csv
  
  s = &quot;11 1663.315780 6.045E-26 6.292E-01.06980.304 2724.04150.64-.009550          1 0 0          0 1 0  8  0  8        7  5  3      355243301884671724    17.0   15.0&quot;
  with open(&lt;path to output_csv&gt;, &quot;w&quot;) as csv_file:
      writer = csv.writer(csv_file, delimiter=',')
      for line in data:
          writer.writerow([s[0:2], s[2], ..., s[59:68]])
  </code></pre>
  <p>This works of course but seems like a very unsophisticated way to do this. Are there any better options?</p>