#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "\:(\s)?(.+)[^\{](\v)"
Local $sString = "#main h1 {" & @CRLF & _
" color: #333;" & @CRLF & _
"}" & @CRLF & _
"a {" & @CRLF & _
" text-decoration: none;" & @CRLF & _
" color: #333;" & @CRLF & _
"}" & @CRLF & _
"a:hover {" & @CRLF & _
" text-decoration: underline;" & @CRLF & _
"}" & @CRLF & _
"body {" & @CRLF & _
" margin: 0;" & @CRLF & _
" display: table-row;" & @CRLF & _
" /*vertical-align: middle;" & @CRLF & _
" filter: url(#blur);" & @CRLF & _
" background: url('bg.jpg') center top no-repeat #333;" & @CRLF & _
" background-clip: cover;" & @CRLF & _
" -moz-filter: blur(20px);*/" & @CRLF & _
" position: relative;" & @CRLF & _
"}" & @CRLF & _
"body::before {" & @CRLF & _
" content:'';" & @CRLF & _
" background: url('bg.jpg') center top no-repeat #333;" & @CRLF & _
" background-clip:cover;" & @CRLF & _
" background-attachment: fixed;" & @CRLF & _
" position: absolute;" & @CRLF & _
" top: 0; bottom: 0; left: 0; right: 0;" & @CRLF & _
" height: 100%;" & @CRLF & _
" width: 100%;" & @CRLF & _
" filter: url(#blur);" & @CRLF & _
" filter: blur(2px);" & @CRLF & _
" -webkit-filter: blur(2px);" & @CRLF & _
" z-index: -1;" & @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