#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)^([A-Z]+): (.*(?:\r?\n(?![A-Z]+: ).*)*)"
Local $sString = "SQL: SELECT `translation`.`string`, `translation`.`translate` FROM `translation` WHERE (store_id IN (0 , :store_id)) AND (locale = :locale) ORDER BY `store_id` ASC" & @CRLF & _
"BIND: array (" & @CRLF & _
" ':locale' => 'en_US'," & @CRLF & _
" ':store_id' => '3'," & @CRLF & _
")" & @CRLF & _
"AFF: 0" & @CRLF & _
"TIME: 0.0003" & @CRLF & _
"TRACE: #1 xxx\Framework\DB\Logger\File[xxx\Framework\DB\Logger\LoggerAbstract]#0000000028783cd000000000748608f7#->getStats('query', 'SELECT `translat...', array(':locale' => 'en_US', ':store_id' => 3), &xxx\Framework\DB\Statement\Pdo\Mysql#0000000028783e1900000000748608f7#) called at [vendor/xxx/framework/DB/Logger/File.php:67]" & @CRLF & _
"#2 xxx\Framework\DB\Logger\File#0000000028783cd000000000748608f7#->logStats('query', 'SELECT `translat...', array(':locale' => 'en_US', ':store_id' => 3), &xxx\Framework\DB\Statement\Pdo\Mysql#0000000028783e1900000000748608f7#) called at [vendor/xxx/framework/DB/Logger/LoggerProxy.php:152]" & @CRLF & _
"#3 xxx\Framework\DB\Logger\LoggerProxy#0000000028783cba00000000748608f7#->logStats('query', 'SELECT `translat...', array(':locale' => 'en_US', ':store_id' => 3), &xxx\Framework\DB\Statement\Pdo\Mysql#0000000028783e1900000000748608f7#) called at [vendor/xxx/framework/DB/Adapter/Pdo/Mysql.php:547]" & @CRLF & _
"#4 xxx\Framework\DB\Adapter\Pdo\Mysql\Interceptor[xxx\Framework\DB\Adapter\Pdo\Mysql]#0000000028783ca800000000748608f7#->_query('SELECT `translat...', array(':locale' => 'en_US', ':store_id' => 3)) called at [vendor/xxx/framework/DB/Adapter/Pdo/Mysql.php:613]" & @CRLF & _
"#5 xxx\Framework\DB\Adapter\Pdo\Mysql\Interceptor[xxx\Framework\DB\Adapter\Pdo\Mysql]#0000000028783ca800000000748608f7#->query(&xxx\Framework\DB\Select#0000000028783eea00000000748608f7#, array(':locale' => 'en_US', ':store_id' => 3)) called at [generated/code/xxx/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php:128]" & @CRLF & _
"#6 xxx\Framework\DB\Adapter\Pdo\Mysql\Interceptor#0000000028783ca800000000748608f7#->query(&xxx\Framework\DB\Select#0000000028783eea00000000748608f7#, array(':locale' => 'en_US', ':store_id' => 3)) called at [vendor/xxx/zendframework1/library/Zend/Db/Adapter/Abstract.php:811]" & @CRLF & _
"#7 xxx\Framework\DB\Adapter\Pdo\Mysql\Interceptor[Zend_Db_Adapter_Abstract]#0000000028783ca800000000748608f7#->fetchPairs(&xxx\Framework\DB\Select#0000000028783eea00000000748608f7#, array(':locale' => 'en_US', ':store_id' => 3)) called at [generated/code/xxx/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php:1610]" & @CRLF & _
"#8 xxx\Framework\DB\Adapter\Pdo\Mysql\Interceptor#0000000028783ca800000000748608f7#->fetchPairs(&xxx\Framework\DB\Select#0000000028783eea00000000748608f7#, array(':locale' => 'en_US', ':store_id' => 3)) called at [vendor/xxx/module-translation/Model/ResourceModel/Translate.php:90]" & @CRLF & _
"#9 xxx\Translation\Model\ResourceModel\Translate#0000000028783eeb00000000748608f7#->getTranslationArray(3, 'en_US') called at [generated/code/xxx/Framework/Translate/ResourceInterface/Proxy.php:95]" & @CRLF & _
"#10 xxx\Framework\Translate\ResourceInterface\Proxy#0000000028783ecd00000000748608f7#->getTranslationArray(NULL, 'en_US') called at [vendor/xxx/framework/Translate.php:380]" & @CRLF & _
"#11 xxx\TranslationGenerator\Model\Import\Translate[xxx\Framework\Translate]#0000000028783ede00000000748608f7#->_loadDbTranslation() called at [vendor/xxx/translation-generator/Model/Import/Translate.php:130]" & @CRLF & _
"#12 xxx\TranslationGenerator\Model\Import\Translate#0000000028783ede00000000748608f7#->loadData('frontend', false) called at [vendor/xxx/framework/App/Area.php:245]" & @CRLF & _
"#13 xxx\Framework\App\Area#0000000028783ec600000000748608f7#->_initTranslate() called at [vendor/xxx/framework/App/Area.php:216]" & @CRLF & _
"#14 xxx\Framework\App\Area#0000000028783ec600000000748608f7#->_loadPart('translate') called at [vendor/xxx/framework/App/Area.php:143]" & @CRLF & _
"#15 xxx\Framework\App\Area#0000000028783ec600000000748608f7#->load('translate') called at [vendor/xxx/framework/View/DesignLoader.php:55]" & @CRLF & _
"#16 xxx\Framework\View\DesignLoader#0000000028783ec200000000748608f7#->load() called at [vendor/xxx/framework/App/Action/Plugin/Design.php:48]" & @CRLF & _
"#17 xxx\Framework\App\Action\Plugin\Design#0000000028783edd00000000748608f7#->beforeDispatch(&xxx\Customer\Controller\Section\Load\Interceptor#0000000028783ed400000000748608f7#, &xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:121]" & @CRLF & _
"#18 xxx\Customer\Controller\Section\Load\Interceptor#0000000028783ed400000000748608f7#->xxx\Framework\Interception\{closure}(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:153]" & @CRLF & _
"#19 xxx\Customer\Controller\Section\Load\Interceptor#0000000028783ed400000000748608f7#->___callPlugins('dispatch', array(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#), array(array('designLoader', 'customerNotifica...', 'catalog_app_acti...', 'tax-app-action-d...', 'weee-app-action-...', 'storeCheck', 'contextPlugin', 'customer-app-act...', 'customer-segment...'))) called at [generated/code/xxx/Customer/Controller/Section/Load/Interceptor.php:39]" & @CRLF & _
"#20 xxx\Customer\Controller\Section\Load\Interceptor#0000000028783ed400000000748608f7#->dispatch(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/App/FrontController.php:162]" & @CRLF & _
"#21 xxx\Framework\App\FrontController\Interceptor[xxx\Framework\App\FrontController]#0000000028783ce800000000748608f7#->processRequest(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#, &xxx\Customer\Controller\Section\Load\Interceptor#0000000028783ed400000000748608f7#) called at [vendor/xxx/framework/App/FrontController.php:98]" & @CRLF & _
"#22 xxx\Framework\App\FrontController\Interceptor[xxx\Framework\App\FrontController]#0000000028783ce800000000748608f7#->dispatch(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:58]" & @CRLF & _
"#23 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->___callParent('dispatch', array(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#)) called at [vendor/xxx/framework/Interception/Interceptor.php:138]" & @CRLF & _
"#24 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->xxx\Framework\Interception\{closure}(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]" & @CRLF & _
"#25 xxx\Store\App\FrontController\Plugin\RequestPreprocessor#0000000028783f0400000000748608f7#->aroundDispatch(&xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#, &Closure#0000000028783c2500000000748608f7#, &xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:135]" & @CRLF & _
"#26 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->xxx\Framework\Interception\{closure}(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73]" & @CRLF & _
"#27 xxx\PageCache\Model\App\FrontController\BuiltinPlugin#0000000028783c5a00000000748608f7#->aroundDispatch(&xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#, &Closure#0000000028783c2500000000748608f7#, &xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:135]" & @CRLF & _
"#28 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->xxx\Framework\Interception\{closure}(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/Interception/Interceptor.php:153]" & @CRLF & _
"#29 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->___callPlugins('dispatch', array(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#), NULL) called at [generated/code/xxx/Framework/App/FrontController/Interceptor.php:26]" & @CRLF & _
"#30 xxx\Framework\App\FrontController\Interceptor#0000000028783ce800000000748608f7#->dispatch(&xxx\Framework\App\Request\Http#0000000028783d0b00000000748608f7#) called at [vendor/xxx/framework/App/Http.php:116]" & @CRLF & _
"#31 xxx\Framework\App\Http\Interceptor[xxx\Framework\App\Http]#0000000028783d4700000000748608f7#->launch() called at [generated/code/xxx/Framework/App/Http/Interceptor.php:24]" & @CRLF & _
"#32 xxx\Framework\App\Http\Interceptor#0000000028783d4700000000748608f7#->launch() called at [vendor/xxx/framework/App/Bootstrap.php:261]" & @CRLF & _
"#33 xxx\Framework\App\Bootstrap#0000000028783d9c00000000748608f7#->run(&xxx\Framework\App\Http\Interceptor#0000000028783d4700000000748608f7#) called at [pub/index.php:49]"
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