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.
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
Hye Nithin_P
Thankyou for the help. Can you show me in detail on how to achieve that?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.