# Split String by number

**URL:** <https://forum.uipath.com/t/split-string-by-number/199878>\
**Category:** Studio\
**Tags:** string, data-manipulation, question, studio, system, activities\
**Created:** [March 5, 2020, 2:57am UTC](https://forum.uipath.com/t/split-string-by-number/199878 "2020-03-05T02:57:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adam1/32/534400_2.png) [@Adam1](https://forum.uipath.com/u/Adam1)\
**Post date:** [March 5, 2020, 2:57am UTC](https://forum.uipath.com/t/split-string-by-number/199878/1 "2020-03-05T02:57:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Nithin\_P](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nithin_p/32/18869_2.png) [@Nithin\_P](https://forum.uipath.com/u/Nithin_P)\
**Post date:** [March 5, 2020, 3:10am UTC](https://forum.uipath.com/t/split-string-by-number/199878/2 "2020-03-05T03:10:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Adam1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adam1/32/534400_2.png) [@Adam1](https://forum.uipath.com/u/Adam1)\
**Post date:** [March 5, 2020, 3:25am UTC](https://forum.uipath.com/t/split-string-by-number/199878/3 "2020-03-05T03:25:52Z")

</div>

Hye [Nithin\_P](https://forum.uipath.com/u/Nithin_P)

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

---

<div class="post-metadata">

**Author:** ![Nithin\_P](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nithin_p/32/18869_2.png) [@Nithin\_P](https://forum.uipath.com/u/Nithin_P)\
**Post date:** [March 5, 2020, 4:42am UTC](https://forum.uipath.com/t/split-string-by-number/199878/4 "2020-03-05T04:42:13Z")

</div>

Here you go: [Regex\_Split.zip](https://forum.uipath.com/uploads/short-url/naoCwJctvlCNqcvS9IXQOTfwh1i.zip) (5.6 KB)

Regards,  
Nithin

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [August 8, 2020, 5:42pm UTC](https://forum.uipath.com/t/split-string-by-number/199878/5 "2020-08-08T17:42:10Z")

</div>

Closed on August 8, 2020, 5:42pm UTC

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