cancel
Showing results for 
Search instead for 
Did you mean: 

Replace String functionality in Blue Prism

MayankGoyal2
Level 8
Hi,
Please suggest if its possible to use multiple text with OR condition within Text function in calculation stage - Replace({Text}, {Pattern}, {NewText})
Pattern can be multiple text patterns or a regex?

If Regex is not possible with this function, is there an alternate VBO with which we can replace matching regex text?

------------------------------
Mayank Goyal
------------------------------
1 BEST ANSWER

Helpful Answers

Hi Mayank,

There is asset "AVO.Regex" https://digitalexchange.blueprism.com/dx/entry/3593/solution/avoregex on DX that you can use. Alternatively you can have nested Replace statements if that meets your requirements. Eg. Replace(Replace("This is a sample text", "sample", "new"), "new", "sample")

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

View answer in original post

1 REPLY 1

Hi Mayank,

There is asset "AVO.Regex" https://digitalexchange.blueprism.com/dx/entry/3593/solution/avoregex on DX that you can use. Alternatively you can have nested Replace statements if that meets your requirements. Eg. Replace(Replace("This is a sample text", "sample", "new"), "new", "sample")

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------