cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

How do I use Regex substitution?

Replaces the specified "(" with a newline character and removes all non-Chinese and non-numeric characters.

 

d试1(-是23(a文字789(+内c容4$3

2023-01-31_20-13-35.png

txt="d试1(-是23(a文字789(+内c容4$3";

na=Regex(txt,  ?? );

 Thanks!

12 REPLIES 12
lala
Level IX

Re: How do I use Regex substitution?

Thank you so much Craige!

I know it's a very difficult job.Thank you for writing a general framework, I will try to learn more knowledge to modify.Thank you for your efforts.

lala
Level IX

Re: How do I use Regex substitution?

  • Like C# code coding code, how can you modify JSL?

20230201205422.png

  • I did not succeed in rewriting it.

Thanks!

h = [=> ];
u = "http://ds.m.emoney.cn/pick";
h["X-Protocol-Id"] = "8900";
h["X-Request-Id"] = "null";

b = Char To Blob( "~0A~0D~E5~BD~93~E6~97~A5~42~E7~82~B9~E8~82~A1~10~F2~DF~D2~09", "ascii~hex" );
rs = New HTTP Request( URL( u ), Method( "POST" ), JSON( b ), Headers( h ) );
rr = rs << Send;
lala
Level IX

Re: How do I use Regex substitution?

  • This is just the general outline.

  • The main problem is to solve how to write request parameters correctly in JSL.

Recommended Articles