Parse String

0
Hello! I want to convert string ‘00000012345’ into ‘12345’ The amount of zeros before is always variable, how would I got about it?
asked
2 answers
1

Hi Philipp,

 

Use the ParseInteger method to parse above string into integer. As a result, preceding zeroes will be removed.

 

Then u can convert the result again back to string using toString

answered
1

Hi

 

You can use string function

replaceAll($YourStringvariable ,'^0+(?!$)' ,'') 

 

Thanks

 

 

answered