Jump to content
UBot Underground

Remove Leading Zeros - Regex


Recommended Posts

I found code here: http://jsfiddle.net/sMgSp/110/

that will remove the leading zeros from a string.... Anyone know how I would make that work in ubot on the contents of a variable?

 

example.... var string =

000012

000123

012000

 

I would want the end result to be:

 

12

123

12000

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...