#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?mi)^[a-zA-Z0-9-]+:[ a-zA-Z0-9()'\"-_.]+;\s?"
Local $sString = "border-bottom-color: coral;" & @CRLF & _
"column-rule: 4px double #ff00ff;" & @CRLF & _
"grid-area: 2 / 1 / span 2 (00)/ span 3;" & @CRLF & _
"list-style: square inside url("sqpurple.gif");" & @CRLF & _
"object-position: 5px 10%;" & @CRLF & _
"border: 5px solid red;" & @CRLF & _
"background-color: hsla(89, 43%, 51%, 0.3);" & @CRLF & _
"font-variant-caps: all-small-caps;" & @CRLF & _
"background-image: url('img_tree.gif'), url("paper.gif");" & @CRLF & _
"width: calc(var(--variable-width) + 20px);" & @CRLF & _
"width: calc(2em *+- 5);" & @CRLF & _
"grid-template-columns: 1fr fit-content(250px);"
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