How can I split the string after the letter?

Hi,

I want to split string varaible after letter. For instance, I have “1234D01” and I want “1234D”.

Thanks,

C.

But not only “D”, if it is possible all letters :slight_smile:

Hi @Canberk

Can you tell position is fix? It D is not fixed

If position is fix then you can use substring

YourString.Substring(0, 4)

Thanks

1 Like

you can use regex!
try this [0-9]*.(?=[A-Za-z])

click the link below to test it!
cheers @Canberk

2 Likes