Replace word in variable

My robot takes the password into a variable and if this variable contains the “-” character, I would like it to change it to “!” - how can I do this? :slight_smile:

Hi @sullivanne

Try this in the meanwhile Please provide an sample input.

InputVariable.Replace("-","!")

Regards

yourVar.Replace("-","!")

1 Like

Hi,

FYI, another approach:

If you use StudioX, ModifyText activity works as the following.

Regards,

2 Likes

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