Split String by number

Hye. I want to split a string with the first occurrence of number.
Let’s say string ABC123. I want to split it to ABC and 123.
If string CD345 it split to CD and 345.
How can I do it?

Thanks in advance.

Try this \d+|D+, this will return groups of Letters & Numbers. Even in cases like ABC123DEF234, the group’s will be [ABC, 123, DEF, 234].

Regards,
Nithin

1 Like

Hye Nithin_P

Thankyou for the help. Can you show me in detail on how to achieve that?

1 Like

Here you go: Regex_Split.zip (5.6 KB)

Regards,
Nithin

2 Likes

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