Split number from character

Hello Everyone,

The input is “000023Pooja”, need to split this value.

Output should be “00023” and “Pooja”

Hi,

How about the following expression?

arrStr = System.Text.RegularExpressions.Regex.Split("000023Pooja","(?<=\d)(?=\D)")

Regards,

1 Like

HI @poojadass.murugadass

How about this expression

System.Text.RegularExpressions.Regex.Match(YourString,"\d+").Tostring

image

System.Text.RegularExpressions.Regex.Match(YourString,"\D.*").Tostring

image

Regards
Gokul

1 Like

Thank you, I’ll try and let you know.

Thank you. I’ll try and let you know

Thank you @Yoichi @Gokul001 it work’s fine.

1 Like

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