#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)(?:(?:\"|'|\]|\}|\\|\d|(?:nan|infinity|true|false|null|undefined|symbol|math)|\`|\-|\+)+[)]*;?((?:\s|-|~|!|{}|\|\||\+)*.*(?:.*=.*)))"
Local $sString = "<ResourceDictionary" & @CRLF & _
"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"" & @CRLF & _
"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"" & @CRLF & _
"xmlns:System="clr-namespace:System;assembly=mscorlib"" & @CRLF & _
"xmlns:Diag="clr-namespace:System.Diagnostics;assembly=system">" & @CRLF & _
" <ObjectDataProvider x:Key="LaunchCalch" ObjectType="{x:Type Diag:Process}" MethodName="Start">" & @CRLF & _
" <ObjectDataProvider.MethodParameters>" & @CRLF & _
" <System:String>cmd.exe</System:String>" & @CRLF & _
" <System:String>/c calc.exe</System:String>" & @CRLF & _
" </ObjectDataProvider.MethodParameters>" & @CRLF & _
" </ObjectDataProvider>" & @CRLF & _
"</ResourceDictionary>" & @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