cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

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

How can replace the following with a newline with a regular substitution in JMP software's JSL

],[

Thanks!

 

t1=Regex(txt,"],[","\!n",globalreplace);//??
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How can replace the following with a newline with a regular substitution in JMP software's JSL

You need to escape [ and ] in regex (you could also use Substitute/Substitute Into)

 

Names Default To Here(1);

txt = "a],[b";
t1 = Regex(txt, "\!],\!\[", "\!n", GLOBALREPLACE);
t2 = Substitute(txt, "],[", "\!N");
show(t1, t2);

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/jsl-syntax-rules.shtml

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/escaped-characters-in-regular-expressi...

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How can replace the following with a newline with a regular substitution in JMP software's JSL

You need to escape [ and ] in regex (you could also use Substitute/Substitute Into)

 

Names Default To Here(1);

txt = "a],[b";
t1 = Regex(txt, "\!],\!\[", "\!n", GLOBALREPLACE);
t2 = Substitute(txt, "],[", "\!N");
show(t1, t2);

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/jsl-syntax-rules.shtml

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/escaped-characters-in-regular-expressi...

 

-Jarmo

Recommended Articles