title: regex to fix the input string
body: <p>my problem is as follows</p>
  
  <p>I read from a file line per line and each line contains this text:</p>
  
  <pre><code>126,1,1,1,0,1,0,-0.005,-0.005,0.01,0.01,1.,-1.,0.,0.,0.,0.,1.,0.,       5P      8
  -0.005,0.01,0.,0.,1.;                                                  5P      9
  </code></pre>
  
  <p>In a cycle I split each element whenever I find a "," and save it into an array with
                  PS[k].ParameterS = PSection[k].Split(',');</p>
  
  <p>Then I try to save each element into a new text file with a tag for example:</p>
  
  <pre><code>Element1 = 126
  Element2 = 1
  </code></pre>
  
  <p>and so on... My problem is that I need to fix the trucated/incomplete decimal elements, for instance: "1." "0."  "-1." with their proper representation "1.0" "0.0" "-1.0"</p>
  
  <p>I have searched for a long time but I haven't find out if I can use wild cards to be able to fix those elements. for instance to replace the empty spaces I used
      PS[k].ParameterS[l] = PS[k].ParameterS[l].Replace(" ", "");
  before doing the split process.</p>
  
  <p>My output so far is just the elements separated by a comma "," but with incomplete decimals.</p>