title: Python replace ',' within quotes, but keep other commas, then remove the quotes in a string
body: <p>I currently have an string output that looks like this:</p>
  
  <pre><code>Shares Mil,"1,457","1,388","1,341","1,287","1,214","1,155","1,103","1,010",983,959,949
  </code></pre>
  
  <p>and I need it to look like this:</p>
  
  <pre><code>Shares Mil,1457,1388,1341,1287,1214,1155,1103,1010,983,959,949
  </code></pre>
  
  <p>Basically I want to remove the commas in the numbers that are surrounded by quotes and then be able to separate the strings by the commas using <code>.split(',')</code> into a list.</p>
  
  <p>I had an idea to find the commas within the quotes using regular expression to remove the commas and then removing the quotes with <code>.replace('"','')</code> but I'm not sure how to.</p>
  
  <p>I could <code>.split()</code> by the commas and remove the quotes and then manually join the separated numbers but there has to be a more efficient way of doing this, so I thought I'd ask for help.</p>
  
  <p>Thanks!</p>