#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?mx)\b(?P<date>" & @CRLF & _
"(?P<day>" & @CRLF & _
"(?:(?:0[1-9]|[12]\d|30)(?=[- :\.\/](?:04|06|09|11)))|" & @CRLF & _
"(?:(?:0[1-9]|[12]\d|3[01])(?=[- :\.\/](?:01|03|05|07|08|10|12)))|" & @CRLF & _
"(?:(?:0[1-9]|[12]\d)(?=[- :\.\/]02[- :\.\/]\d\d(?:([02468][048])|([13579][26])))" & @CRLF & _
"(?![- :\.\/]02[- :\.\/](?:([2468][1235679])|([13579][01345789])00)))|" & @CRLF & _
"(?:(?:0[1-9]|1\d|2[0-8])(?=[- :\.\/]02[- :\.\/]))" & @CRLF & _
")[- :\.\/]" & @CRLF & _
"(?P<month>0[1-9]|1[012])[- :\.\/]" & @CRLF & _
"(?P<year>[1-9]\d{3})" & @CRLF & _
")\b"
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