How to use JSL to replace characters with special symbols in ""?[{"ReqId":"200904","PoolId":"2001"}]How to
[{\!"ReqId\!":\!"200904\!",\!"PoolId\!":\!"2001\!"}]Thanks!
Automation and Scripting回复: How to use JSL to replace characters with special symbols in ""?txt=Get Clipboard();
tx=Substitute(txt,"\!"","/\!\!"");//??

Re: How to use JSL to replace characters with special symbols in ""?I'm not sure what you want to replace and with what (which is start and which is end?). When you are printing strings which contain quotes, usually using Write() is a good idea so you don't see the JMP's escaped quotes
Names Default To Here(1);
str = "\[test: "text"]\";
Show(str); // str = "test: \!"text\!"";
Write("\!N");
Write(str); // test: "text"Re: How to use JSL to replace characters with special symbols in ""?Thanks!
I see
copy this
[{\!"ReqId\!":\!"200904\!",\!"PoolId\!":\!"2001\!"}]can see

Re: How to use JSL to replace characters with special symbols in ""?txt=Get Clipboard();
tx=Substitute(txt,"\!"","\!\!\!"");
Re: How to use JSL to replace characters with special symbols in ""?Re: How to use JSL to replace characters with special symbols in ""?Try something like
Names Default To Here(1);
// [{\!"ReqId\!":\!"200904\!",\!"PoolId\!":\!"2001\!"}]
txt = Get Clipboard();
// Write(txt);
tx = Substitute(txt,"\!"","\!\!\!"");
// write(tx);
txt2 = "\!"ReqId\!"";
// Write(txt2);
tx2 = Substitute(txt, "\!\!", "");
// Write(tx2);
tx3 = Substitute(Get Clipboard(), "\!\!", "");
// Write(tx3);
Reading about JMP's escape sequences can also be helpful Scripting Guide > JSL Building Blocks > JSL Syntax Rules