Hi Everyone
I have a code S00234567 i want result as S000234567
can you help me
1 Like
1 Like
Hi
if the input is stored in a variable named strinput
then the output in assign activity will be like, which can take zeros only from the beginning
stroutput = System.Text.RegularExpressions.Regex.Replace(strinput.tostring,“(\d)+”,system.Text.RegularExpressions.Regex.Match(strinput.ToString,“(\d)+”).ToString.PadLeft(strinput.length,CCHAR(“0”)))
it worked as well
Cheers @Apchu
1 Like