This is my first post here in the forum and relatively new to UiPath although I’ve been a vivid user of the forum
This is my doubt,
I have a string variable (it might be a combination of alphanumeric with special characters - for ex : “#H3ll0&@Ll26”)
And this above mentioned string will be getting in the below fashion
Type 1 - (#H3ll0&@Ll26):
Type 2 - ((#H3ll0&@Ll26)):
Type 3 - (#H3ll0(&)@Ll26):
So what I am looking for is, when I get a string like Type 1 - I need to manipulate it in such a way I should remove the open and closing parenthesis and make the string look like #H3ll0&@Ll26
For Type 2 - it should look like #H3ll0&@Ll26
For Type 3 - #H3ll0(&)@Ll26 (here the open & closing parenthesis inside the string should remain as such.
I’ve used the following techniques so far
a. regex - (?<=()[A-Za-z0-9!#$%^&_-@ ](?<!)) = when I use this, if there is a second open and closing parenthesis, it will create one null match which I don’t need.
b. remove & use substring
but these options not really helps my needs !
Can somebody please help me out with getting a proper solution ?