Hi team,
I have one text like hello,world (1234567)
From above text i want only hello, world using regex in UiPath.
Kindly suggest
Hi team,
I have one text like hello,world (1234567)
From above text i want only hello, world using regex in UiPath.
Kindly suggest
Hi @Baby123
Use this regex
yourInputText= "hello,world (1234567)"
Output= System.Text.RegularExpressions.Regex.Match(yourInputText, "([a-zA-Z\s,]+)").Value
Output is of DataType System.String
Regards
Hi @Baby123
Use below expression
Str_Var= “hello,world (1234567)”
System.Text.RegularExpressions.Regex.Match(Str_Var, “\b([a-zA-Z,]+)\b”).Value
Hope it will helps you ![]()
Cheers!!
Hi,
Can you share condition of your requirement in details?
If you want to extract text before (, the following will work.
System.Text.RegularExpressions.Regex.Match(strData,".*(?=\()").Value
Regards,
Please share proper condition you need…
If you need before ( then split also will do the job…you dont need regex at all
Str.Split("("c).First
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.