#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "<i>(?<date>.*)|<p class="spits-[0-9]+">.*(?<intensity>[0-9]+)|<p>(?<description>[\w ,\.:'"]+)|<p class="spits-klasse">(?<default>[\w ,\.:'"]+)"
Local $sString = "<table width="100%"><tr><td valign="top" width="80">" & @CRLF & _
" <b>wo 1 februari</b>" & @CRLF & _
" </td>" & @CRLF & _
" <td>" & @CRLF & _
" <table width="100%"><tr class="spits-dagdeel spits-Ochtend"><td valign="top" width="60">" & @CRLF & _
" <i>Ochtend</i>" & @CRLF & _
" </td>" & @CRLF & _
" <td>" & @CRLF & _
" <p class="spits-2">lichte spits (2)" & @CRLF & _
" </p>" & @CRLF & _
" <p>De eerste dag van de nieuwe maand, woensdag. Tijdens de ochtend is het vaak rustig op de wegen en dat zal ook nu het geval zijn. We verwachten op het drukste moment niet meer dan 150 kilometer file op de snelwegen.</p>" & @CRLF & _
" <p class="spits-klasse"> Bij een lichte spits wordt tot 150 km verwacht. De normale knelpunten hebben files." & @CRLF & _
" </p>" & @CRLF & _
" </td>" & @CRLF & _
" </tr><tr class="spits-dagdeel spits-Avond"><td valign="top" width="60">" & @CRLF & _
" <i>Avond</i>" & @CRLF & _
" </td>" & @CRLF & _
" <td>" & @CRLF & _
" <p class="spits-3">reguliere spits (3)" & @CRLF & _
" </p>" & @CRLF & _
" <p>Deze spits iets meer drukte dan tijdens de ochtendspits, maar dat is vrij gebruikelijk. We verwachten geen bijzonderheden. Alleen bij ongelukken kunnen files snel in lengte toenemen.</p>" & @CRLF & _
" <p class="spits-klasse"> Bij een reguliere spits wordt tot 225 km verwacht. Alle knelpunten hebben files." & @CRLF & _
" </p>" & @CRLF & _
" </td>" & @CRLF & _
" </tr></table></td>" & @CRLF & _
" </tr></table>"
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