#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)^(?:(?:\+|00)88|01)?(?:\d{11}|\d{13})$"
Local $sString = "+8812345678901" & @CRLF & _
"+88123456789012" & @CRLF & _
"+881234567890123" & @CRLF & _
"+8812345678901234" & @CRLF & _
"0112345678901" & @CRLF & _
"01123456789012" & @CRLF & _
"011234567890123" & @CRLF & _
"0112345678901234" & @CRLF & _
"" & @CRLF & _
"+8812345678901" & @CRLF & _
"0112345678901" & @CRLF & _
"12345678901" & @CRLF & _
"+8801812598624" & @CRLF & _
"008801812598624" & @CRLF & _
"01812598624" & @CRLF & _
"01712598624" & @CRLF & _
"01672598624" & @CRLF & _
"01919598624" & @CRLF & _
"01419598624" & @CRLF & _
"01319598624"
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