Posted By

xavsio4 on 08/03/11


Tagged

String


Versions (?)

Remove leading zeros from a string


 / Published in: jQuery
 

  1. function trimLeadZero(s) {
  2. return s.replace(/^0+/, "");
  3. }

Report this snippet  

You need to login to post a comment.