How to remove characters in a variable

uiautomation
activities

#1

Hi everybody,

Can someone please guide me on how to solve this. I have tried several ways (trim, substring and remove) but nothing worked for me.

I have copied to a variable a string that looks like this:
1.1.1 This is the text I want to keep.

Basically I would like to remove “1.1.1” and the empty space which is basically a “tab” and only keep “This is the text I want to keep”.

Thanks in advance for your help :slight_smile:


#2

Hello @stephjo,

You can use Regex.Replace or String.Replace, here is an example:ExampleReplace.xaml (7.0 KB)

Regards,
Susana


#3

Perfect. It worked! Thanks a lot for help :))))