#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)^N;|[bdi]:[0-9.E-]+;|s:[0-9]+:".*";|a:[0-9]+:{.*}|O:[0-9]+:"[A-Za-z0-9_\\]+":[0-9]+:{.*}$"
Local $sString = "N;" & @CRLF & _
"b:0;" & @CRLF & _
"b:1;" & @CRLF & _
"i:0;" & @CRLF & _
"i:1;" & @CRLF & _
"i:-1;" & @CRLF & _
"d:0;" & @CRLF & _
"d:1;" & @CRLF & _
"d:-1;" & @CRLF & _
"d:-1.2;" & @CRLF & _
"s:0:"";" & @CRLF & _
"s:3:"foo";" & @CRLF & _
"a:0:{}" & @CRLF & _
"a:6:{i:0;N;i:1;b:0;i:2;i:0;i:3;d:0;i:4;s:2:"''";s:3:"foo";s:5:""bar"";}" & @CRLF & _
"O:8:"stdClass":0:{}"
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