So there we go. Let me explain:
Input text: Robotic process automation (RPA) is a software
Step 1:
We simply replace "(" with "{Shift}(9)"
Our text is now: "Robotic process automation {Shift}(9)RPA) is a software"
Step 2:
Here, we can't simply replace ")" as we want to preserve our "{Shift}(9)" from the previous step.
We want to replace all ")" that do not have "{Shift}(9" in front of them.
To do that, we need to use regex with a negative look-behind:
(?<!{Shift}(9)\)
Here is a working code that you can copy-paste to your PAD designer:
SET Text TO $'''Robotic process automation (RPA) is a software technology that makes it easy to build, deploy, and manage software robots that emulate humans actions interacting with digital systems and software.
Follow the steps below to build your first workflow:
1-
2-'''
Text.Replace Text: Text TextToFind: $'''(''' IsRegEx: False IgnoreCase: False ReplaceWith: $'''{Shift}(9)''' ActivateEscapeSequences: False Result=> Text
Text.Replace Text: Text TextToFind: $'''(?<!{Shift}\(9)\)''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''{Shift}(0)''' ActivateEscapeSequences: False Result=> Text