#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)^IMD(?:\+.*?){3}(?::.*?){3}(?<desc>[^:+']*)"
Local $sString = "LIN+00010++079790040080030:SA' " & @CRLF & _
"PIA+1+079790040080030:SA' " & @CRLF & _
"IMD+F++:::DIN 7979 D Stahl blank | 8x30 Zylin' " & @CRLF & _
"QTY+12:10,000:PCE' " & @CRLF & _
"PRI+AAA:23,56:::100:PCE' " & @CRLF & _
"SCC+1' " & @CRLF & _
"QTY+1:10,000:+::' " & @CRLF & _
"DTM+2:20200223:102' " & @CRLF & _
"LIN+00020++079790040080040:SA' " & @CRLF & _
"PIA+1+079790040080040:SA' " & @CRLF & _
"IMD+F++:::DIN 7979 D Stahl blank | 8x40 Zylin' " & @CRLF & _
"QTY+12:10,000:PCE' " & @CRLF & _
"PRI+AAA:24,58:::100:PCE' " & @CRLF & _
"SCC+1' " & @CRLF & _
"QTY+1:10,000' " & @CRLF & _
"DTM+2:20200223:102' " & @CRLF & _
"LIN+00030++009128009060016:SA' " & @CRLF & _
"PIA+1+009128009060016:SA' " & @CRLF & _
"IMD+F++:::DIN 912 Stahl 8.8 blank | M6x16 Zyl' " & @CRLF & _
"QTY+12:100,000:PCE' " & @CRLF & _
"PRI+AAA:2,36:::100:PCE' " & @CRLF & _
"SCC+1' " & @CRLF & _
"QTY+1:100,000' " & @CRLF & _
"DTM+2:20200223:102' " & @CRLF & _
""
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH)
Local $aFullArray[0]
For $i = 0 To UBound($aArray) -1
_ArrayConcatenate($aFullArray, $aArray[$i])
Next
$aArray = $aFullArray
; Present the entire match result
_ArrayDisplay($aArray, "Result")
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm