title: How to replace all matching characters except the first occurrence
body: <p>I am trying to use regex to compare a string in JavaScript. I want to replace all <code>'.'s</code> and <code>'%'s</code> with empty character '' but the catch is I don't want to replace the first occurrence of <code>'.'</code>.</p>
  
  <pre><code>value.replace(/\%\./g, '');
  </code></pre>
  
  <p>Expected result like below:</p>
  
  <pre><code>.4.5.6.7. ==&gt; .4567
  4.5667.444... ==&gt; 4.56667444
  ..3445.4 ==&gt; .34454
  </code></pre>