#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?m)/\*\n?\r?" & @CRLF & _
"(?: \* ©20\d{2}.*\n?\r?)" & @CRLF & _
"(?: \*(?:.*\n?\r?))+" & @CRLF & _
" \*/"
Local $sString = "/*" & @CRLF & _
" * ©2012 <!-- start slipsum code -->" & @CRLF & _
" *" & @CRLF & _
" * Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face" & @CRLF & _
" * sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb." & @CRLF & _
" * <!-- end slipsum code -->" & @CRLF & _
" */" & @CRLF & _
"" & @CRLF & _
"/*" & @CRLF & _
" * ©2021 <!-- start slipsum code -->" & @CRLF & _
" *" & @CRLF & _
" * Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face" & @CRLF & _
" * sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb." & @CRLF & _
" * <!-- end slipsum code -->" & @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