Re : Comment remplacer ce qui suit par une nouvelle ligne avec une substitution régulière dans le JSL du logiciel JMPVous devez échapper [ et ] dans regex (vous pouvez également utiliser 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-expressions.shtml
Comment remplacer ce qui suit par une nouvelle ligne avec une substitution régulière dans le JSL du logiciel JMP],[
Merci!
t1=Regex(txt,"],[","\!n",globalreplace);//??
Automatisation et scripts