Replace of multiple strings 12

Hi
str=abcd[123456]
how to trim/remove/replace “[” and “]” in a single syntax

1 Like

(str.Replace(“[”,“”).Replace(“]”,“”)

@datnt2509

Hi
welcome to uipath community
yah thats possible
if your string is
str = abcd[123456]
then use a assign activity and mention like this
str = str.ToString.Replace(“[”,“”),Replace(“]”,“”)

hope this would help you
Cheers @datnt2509