How to remove Zero anywhere in the String

Hi Friends,

How to remove Zero anywhere in the String?, Anyone pls assist me.

For Ex : 02340980340230
Result : 234983423

Hi @NathanSK

You can use this in assign activity:

strInput = strInput.Replace(“0”,“”)
It will remove all zeros in your string

1 Like

Hi @NathanSK

Input = "02340980340230"
Output = System.Text.RegularExpressions.Regex.Replace(Input,"[0]","")

Hope it helps!!

Hi @NathanSK

Can you try this

String.Join("", Input.Split("0"c))

Regards,