#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "<h[1-6]"
Local $sString = "<h2>Description</h2><p>It’s never been easier to transform your look with a Mid Length Dark Chestnut Wavy Full Cap Wig With Locks. The biggest advantage of full cap wigs is that they do not require prior preparation before being placed on the head. Simply braid your hair close to your head, cover your hair with a wig cap and place the full cap wig over your head.</p>" & @CRLF & _
"<p>Realistic wig model for every day or thematic event.</p>" & @CRLF & _
"<p>Mid Length Dark Chestnut Wavy Full Cap Wig With Lockshas an in-line special hat of breathable fabric that allows the wearing of the wig for a long time with maximum comfort. The hair is made from high quality heat resistant synthetic fibers which give the feeling of natural soft human hair.</p>" & @CRLF & _
"<p>Universal size – you can easily and quickly adjusted the width of the wig with the help of special bands that prevent it from moving. The model has a comfortable elastic adjustment zone and fits on each head.</p>" & @CRLF & _
"<p>The wig has its own hairstyle, but it can be changed if you want. Because the model is made from a high-quality fibers, it looks spectacular in appearance and leaves the feeling of real hair.</p>" & @CRLF & _
"<p>Place the crown of your attractive new and amazing vision with brand ModaWig!</p>" & @CRLF & _
"<p>Color that appears on your monitor could vary from the original color of the wig due to different monitor settings.</p>" & @CRLF & _
"<h2>Mid Length Dark Chestnut Wavy Full Cap Wig With Locks Dalia specifications:</h2>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">High quality heat resistant synthetic fiber hair similar to real human hair</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">Natural hairline transition enhanced with baby hair for more realistic look</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">Full and thick with 150% density.</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">Perfectly fit the curve of the head</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">Does not knots or tangles easily.</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">The size fits most people; you can adjust the hook inside the cap to the correct size to suit your head.</li>" & @CRLF & _
"</ul>" & @CRLF & _
"<ul>" & @CRLF & _
"<li style="color: #555555;">The high-quality, heat resistant fibers make the hair natural, and soft on touch.</li>" & @CRLF & _
"</ul>"
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