#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?x)(?n)(?i:{[a-f\d]{8}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{12}})|" & @CRLF & _
"(?i:\([a-f\d]{8}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{12}\))|" & @CRLF & _
"(?i:[a-f\d]{8}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{4}-?[a-f\d]{12})|" & @CRLF & _
"{0x[a-fA-F\d]{8},0x[a-fA-F\d]{4},0x[a-fA-F\d]{4},{0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2},0x[a-fA-F\d]{2}}}" & @CRLF & _
""
Local $sString = "string str = @"" & @CRLF & _
" 50de1696-8c63-4856-a204-7f4d93082da8" & @CRLF & _
" AB9B479D-3E48-49B7-A3B9-3BEC6ADEE344" & @CRLF & _
" d1ce1bec29434df09a03fc0605a2b481" & @CRLF & _
" DC9A9DA1D9D448DA8B9BDC401E20BA69" & @CRLF & _
" {8f60f165-38f9-42ad-95d2-22b746de1cba}" & @CRLF & _
" {DC9A9DA1-D9D4-48DA-8B9B-DC401E20BA69}" & @CRLF & _
" (f4e06eae-58d2-4daa-9f2d-917f622d23ea)" & @CRLF & _
" (DC9A9DA1-D9D4-48DA-8B9B-DC401E20BA69)" & @CRLF & _
" {0xB7D3E6C4,0x7FA6,0x4C48,{0xBA,0x0A,0x44,0x58,0x9D,0x14,0xE5,0x12}}" & @CRLF & _
" {0xf3ffac91,0xc8cd,0x434d,{0x9f,0x2d,0x78,0x93,0x9b,0xa4,0x82,0x1d}}" & @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