#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "/api/documentDownload/(.*)$"
Local $sString = "/inga-rest/wallet/aaa" & @CRLF & _
"" & @CRLF & _
"/inga-rest/wallet/MA503122/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA471075/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA471420/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/YYI9878/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA510926/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA299306/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA515464/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA473773/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA515578/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA215692/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA468301/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MV974901/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA486190/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA525372/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA470176/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA281510/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA464449/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA472241/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA482703/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA468533/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA459862/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA501495/products?workflow=CERTIFIED_IDENTITY" & @CRLF & _
"/inga-rest/wallet/MA162619/products?workflow=CERTIFIED_IDENTITY"
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYFULLMATCH)
; 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