[{"ReqId":"200904","PoolId":"2001"}]
How to
[{\!"ReqId\!":\!"200904\!",\!"PoolId\!":\!"2001\!"}]
Thanks!
txt=Get Clipboard();tx=Substitute(txt,"\!"","/\!\!"");//??
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"
I see
copy this
can see
txt=Get Clipboard(); tx=Substitute(txt,"\!"","\!\!\!"");
Where can I see this syntax?
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