title: how to remove dot from string in lua
body: <p>I would like remove dot from string.
  For example</p>
  
  <pre><code>242.701000393 = 242701000393
  </code></pre>
  
  <p>I have tried below code which is working fine in some cases.</p>
  
  <pre><code>string.gsub("242.701000393", "%.", "")
  </code></pre>
  
  <p>Same way, I have tried above function for <code>100999212.707000393</code> .But it's not working for it.</p>
  
  <p>Am newbie in lua.I would like to just remove .(dot) from string in every cases.</p>
  
  <p>Share your thoughts as i don't know how to achieve it.</p>
  
  <p>As per my logic looks like below</p>
  
  <ol>
  <li>split a string by dot and convert into an array</li>
  <li>concat all array elements</li>
  </ol>
  
  <p>Share it solution if possible.</p>
  
  <p>Thanks in advance.</p>
  
  <p>CODE : </p>
  
  <pre><code>local destination_number =100999212.707000393
  destination_number = string.gsub(destination_number, "%.", "")
  print(destination_number)
  </code></pre>
  
  <p>Output : <code>100999212707</code></p>
  
  <p>Expected output : <code>100999212707000393</code></p>