String manipulation using split function

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,

Reference:

Regards,
NaNi

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

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

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

1 Like

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