How to split a Innumerable string?

Hi guys,

I have an input value 2427-62DM02A0CD:31218 i need to get the output as 242762DM02A0CD

Need to split it by : but i’m not able to display the output to check it is correct or not.

In message box i only get system.string

Any help in this?

Thank you.

1 Like

Hi @batBot

If you want to get this value “242762DM02A0CD”. You just need to replace “-” and use substring or right method to get the desire value.

cheers :smiley:

Happy learning :smiley:


Try this expression,

split(strVariable, “:”)(0).Replace("-","").ToString.Trim



@batBot Here is the solution

1 Like

Thank you @MartianxSpace if i use this var=split(inputvar, “:”) var(1) then he output is like this 31218 only the other string must come.

1 Like

Thank you got it!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.