String Manipulation by elimination starting value from string

Hii, plaese help

I have a string as 010 but i wanted to make it 10. Please provide some solution how i can eliminate this starting “0” from the string. The string can be anything but it will starts with 0 so i wanted to eliminate this 0 from string. The string length can be anything it is not always necessarry the length is 3

Hi @Dummy

Checkout this expression

System.text.RegularExpressions.Regex.Replace(yourstringvariable,”^\d”,””)

Note: after copying the expression kindly replace the double quotes in the expressions manually

Regards
Sudharsan

grafik
YourStringVar.TrimStart({"0"c})

Hello @Dummy

You can do as below

str1.Substring(1)

This helps to remove the first character in the string.

Thanks

Hi,

FYI, another approach:

image

CInt(yourString).ToString()

Regards,