#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?mix)'^p(" & @CRLF & _
" (" & @CRLF & _
" (" & @CRLF & _
" (24" & @CRLF & _
" (" & @CRLF & _
" (ep) |" & @CRLF & _
" (f[jv]?) |" & @CRLF & _
" (hj)" & @CRLF & _
" )" & @CRLF & _
" )" & @CRLF & _
" (\d{1,4})" & @CRLF & _
" [a-z]{2}" & @CRLF & _
" \d{3} ([a-z]?))) |" & @CRLF & _
" 30f \d{4} [a-z]?|" & @CRLF & _
" 33( ( c [hk] \d{1,4} m[cp] \d{3} (s1)? ) |" & @CRLF & _
" ( e (p|dv?|v) \d{2,3} [a-z]{2} \d{2,4} ) |" & @CRLF & _
" (fj \d{1,4} (mc|g[sp]) \d{3} a?))" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
")" & @CRLF & _
"\.gld$" & @CRLF & _
""
Local $sString = ""
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