# String manipulation using split function

**URL:** <https://forum.uipath.com/t/string-manipulation-using-split-function/544865>\
**Category:** Activities\
**Tags:** question, excel, system, activities\
**Created:** [May 15, 2023, 8:27am UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865 "2023-05-15T08:27:05Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [May 15, 2023, 10:00am UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/21 "2023-05-15T10:00:16Z")

</div>

Hi,

It’s necessary to add backslash to your pattern and add columnanme to your CurrentRow variable as the following

```
System.Text.RegularExpressions.Regex.Match(CurrentRow("ColumnName").ToString(),"\(.*?\)").Value 

```

Regards,

---

<div class="post-metadata">

**Author:** ![THIRU\_NANI](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thiru_nani/32/317561_2.png) [@THIRU\_NANI](https://forum.uipath.com/u/THIRU_NANI)\
**Post date:** [May 15, 2023, 10:00am UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/22 "2023-05-15T10:00:41Z")

</div>

Reference:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/8/7/5876a28ca46ab9914ae9ef608ba73b76bd85ef35.png)

Regards,  
NaNi

---

<div class="post-metadata">

**Author:** ![RAKESH\_KUMAR\_Tiwari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rakesh_kumar_tiwari/32/361037_2.png) [@RAKESH\_KUMAR\_Tiwari](https://forum.uipath.com/u/RAKESH_KUMAR_Tiwari)\
**Post date:** [May 15, 2023, 10:04am UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/23 "2023-05-15T10:04:45Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/f/2/6/f260194096b611fdce138b907154fed6e503b40c.png)

it gives me values also and null values also, why?, also i want distinct value.

---

<div class="post-metadata">

**Author:** ![THIRU\_NANI](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thiru_nani/32/317561_2.png) [@THIRU\_NANI](https://forum.uipath.com/u/THIRU_NANI)\
**Post date:** [May 15, 2023, 10:08am UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/24 "2023-05-15T10:08:07Z")

</div>

Hey!

Did you check the value in CurrentRow(“Responsible User”).ToString.Trim in the immediate panel?

If we are getting the value in immediate panel we can get the value n braces.

an you please check in this way?

Regards,  
NaNi

---

<div class="post-metadata">

**Author:** ![adiijaiin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adiijaiin/32/523523_2.png) [@adiijaiin](https://forum.uipath.com/u/adiijaiin)\
**Post date:** [May 15, 2023, 12:41pm UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/25 "2023-05-15T12:41:28Z")

</div>

Hi @RAKESH_KUMAR_Tiwari

Please try this expression:

> CurrentRow(“Responsible user”).ToString.Trim.Split({“(”},StringSplitOptions.None)(1).TrimEnd  
> (“)”.ToCharArray)

It might be able to extract the data that you want.

Regards,  
Aditya

---

<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:** [May 18, 2023, 12:42pm UTC](https://forum.uipath.com/t/string-manipulation-using-split-function/544865/26 "2023-05-18T12:42:18Z")

</div>

Closed on May 18, 2023, 12:42pm UTC

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

[Previous page](https://forum.uipath.com/t/string-manipulation-using-split-function/544865.md?page=1)
