cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lala
Level VII

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 VII

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 VII

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 VII

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.