#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "{\$(\w+|\w+\|\w+)}"
Local $sString = "<!DOCTYPE html>" & @CRLF & _
"<html>" & @CRLF & _
"<head>" & @CRLF & _
" <meta charset="utf-8">" & @CRLF & _
" <meta name="robots" content="index,follow">" & @CRLF & _
" <meta name="keywords" content="kamerki, erotyczne">" & @CRLF & _
" <meta name="description" content="Eroticam.pl">" & @CRLF & _
" <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">" & @CRLF & _
" <title>Strona główna | Eroticam.pl</title>" & @CRLF & _
" <base href="{$_template_root|small_letters}">" & @CRLF & _
" <meta property="og:url" content="{$_template_root}"/>" & @CRLF & _
" <meta property="og:site_name" content="eroticam.pl"/>" & @CRLF & _
" <meta property="og:title" content="Strona główna | Eroticam.pl"/>" & @CRLF & _
" <meta property="og:type" content="profile"/>" & @CRLF & _
" <meta property="og:image" content="/img/logo_big.jpg" />" & @CRLF & _
" <meta property="og:description" content="Opis strony"/>" & @CRLF & _
" " & @CRLF & _
" <script src="{$_template_root}/js/libs/console.js"></script>" & @CRLF & _
" <script src="{$_template_root}/js/libs/broadcast.js"></script>" & @CRLF & _
" <script src="https://cdn.socket.io/socket.io-1.3.5.js"></script>" & @CRLF & _
" <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>" & @CRLF & _
" <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>" & @CRLF & _
" <script src="{$_template_root}/js/jquery.fancybox.pack.js"></script>" & @CRLF & _
" " & @CRLF & _
" <link rel="stylesheet" href="{$_template_root}/css/components.css">" & @CRLF & _
" <link rel="stylesheet" href="{$_template_root}/css/default/style.css">" & @CRLF & _
" <link rel="stylesheet" href="{$_template_root}/css/default/responsive.css">" & @CRLF & _
" <link rel="stylesheet" href="{$_template_root}/css/jquery.fancybox.css">" & @CRLF & _
" <link rel="stylesheet" href="{$_template_root}/css/unoSlider.css" type="text/css" media="screen" />" & @CRLF & _
" <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />" & @CRLF & _
" " & @CRLF & _
" <meta name="viewport" content="width=device-width, initial-scale=1">" & @CRLF & _
" <meta name="google-site-verification" content="1tqMv6H9GEsFbXTZaW8zcngUGvqorZ94csA1v7Nc2qg" />" & @CRLF & _
"</head>" & @CRLF & _
"<body>"
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