STOP at the 1st semi-collon

Hey,

What is the best pattern to capture “form-data”? The stopper should be
the 1st ;

-----------------------------97106346719354563161279501903
Content-Disposition: form-data; name=“file1”; filename=“toto.docx”

<code 4D>
ARRAY LONGINT($rL_Pos;0)
ARRAY LONGINT($rL_Length;0)
$B:=Match regex(“Content-Disposition:(.*);”;$T_Content;$L_start;$rL_Pos;$rL_Length)
</code 4D>

thank you

you could use the group pattern ([^;]*)

or make the wildcard less greedy

(.*?)

or just use Split string (…;";")

and process the resulting collection.

Thank you, it is cristal clear

<code 4D>
$B:=Match regex(“Content-Disposition: ([^;]*)”;$T_Content;$L_start;$rL_Pos;$rL_Length)
</code 4D>