title: Preg_replace all but digits and . and ,
body: <p>I'm trying to preg_replace all but Digits and . and , symbols. From a string,</p>
  
  <p>can be</p>
  
  <pre><code>nksdfojsdfjdsfojdsjofsojdfjo213-9sdfknmcfsjozx -xdcv-cv,1239103
  </code></pre>
  
  <p>Output using preg_replace or any other solution would return
  just the numbers and allow for comma and dot signs.</p>
  
  <p>To end up with a1,322.44
  as 1,322.44</p>
  
  <p>This is what I tried</p>
  
  <pre><code>$carPrice=preg_replace('/\D/', '', $carPrice); 
  </code></pre>
  
  <p>Would write three more paragraphs if it  is necessary, don't seem to find the answer.</p>