<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007FhQd9CAFOkta Classic EngineUniversal DirectoryAnswered2025-08-31T09:01:47.000Z2021-10-28T15:54:41.000Z2021-11-02T02:22:54.000Z

cbiso (cbiso) asked a question.

Replace Function inserting unwanted backslashes

I have the following string "ST,NT" that I want to convert to an array. Since there is no split function, I'm trying to replace the comma with quotation marks. But the expression language keeps inserting backslashes

 

String.replace("ST,NT", ",", '","') returns "ST\",\"NT"

 

Desired output "ST","NT"


This question is closed.
Loading
Replace Function inserting unwanted backslashes