I have the following strings:
This is my testasdasd [Test(XYZ="P")] abc sdfsdf
This is my testasdasd [Test(ABC="P")] sdfsdf
This is my testdfsdfsdf [Test(DEF="P")] sdfsdfs
This is my testsdfsdfsdf [Test(GHI="P")] asdfasdasd
I want the add “, Hello” text after the “)” inn the above strings. My output should look like this:
This is my testasdasd [Test(XYZ="P"), Hello] abc sdfsdf
This is my testasdasd [Test(ABC="P"), Hello] sdfsdf
This is my testdfsdfsdf [Test(DEF="P"), Hello] sdfsdfs
This is my testsdfsdfsdf [Test(GHI="P"), Hello] asdfasdasd
Can you help me making regex for that?
EDIT: I can’t do the above just by doing find and replace “]” I have other brackets too in my strings. I need to find [Test(..)] and the output should be [Test(…) , Hello]
You can try with the lookup expression:
and this replace expression: