The following code is fully working. But my question is how would you have done the regular expression? I currently have two groups for the MD5 checksum and filepath >>
Any suggestions for improvements are welcome.
#include <Array.au3>
Local $sMD5FileData = '405b5ad0eb79a9736d6bf8a76c0153f1 *Example.exe' & @CRLF & _
'e5c13b7e919d8a36c308cf25e11efef4 *Example.exe' & @CRLF & _
'087102d22e8a313a3bc192f3fa6e19b6 *Example.exe' & @CRLF & _
'0637924f96cc8243fe49d811cf603784 *Example.exe' & @CRLF & _
'c43282ed2ce63a31d015dd1f6e98e1c6 *C:ExampleExample.exe' & @CRLF
; Create an array like the following:
; $aArray[0] = MD5 checksum
; $aArray[1] = FilePath
; $aArray[2] = MD5 checksum
; $aArray[3] = FilePath
; $aArray[n] = MD5 checksum
; $aArray[n + 1] = FilePath
Local $aSRE = StringRegExp($sMD5FileData, '(w{32})s*(V+)', 3)
_ArrayDisplay($aSRE, 'SRE: ' & @error)