cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

String Operations after Reading from Excel

Hello, 

 

I am reading a cell from Excel which is read by JMP as - "['299','523']". I need the string to be manipulated to be {"299","523"}. I am not able to do this. 

 

Any help would be appreciated. There probably is an easy solution but I cannot figure it out. 

 

Thanks,

Neel

3 REPLIES 3
txnelson
Super User

Re: String Operations after Reading from Excel

Use the Substitute() function to ca hange characters
Jim

Re: String Operations after Reading from Excel

Hi Jim, 

 

I tried that already, but I cannot replace " (double quotes) in the string with an empty space. Any suggestions?

 

This: temp = Substitute(string,""\", " "); doesn't work and I get errors.

 

Thanks!

jthi
Super User

Re: String Operations after Reading from Excel

Substitute should work fine here

Names Default To Here(1);

str = "['299','523']";

str2 = Substitute(str, "'", "\!"", "[", "{", "]", "}");

Write(str2);

You can find escape sequences for quoted strings here Scripting Guide > JSL Building Blocks > JSL Syntax Rules 

-Jarmo

Recommended Articles