Global $oIE, $sHtml = '', $aBetween, $aRegExp
#include <String.au3>
#cs
#include <IE.au3>
$oIE = _IECreate(@ScriptDir & "\5.html")
$sHtml = _IEDocReadHTML($oIE)
Sleep(300)
_IEQuit($oIE)
#ce
$sHtml = FileRead(@ScriptDir & "\5.html")
$aBetween = _StringBetween($sHtml, '<li class="rows3 bold" style="opacity: 0.2;">', '</li>')
If IsArray($aBetween) Then
MsgBox(0, 'txt1', $aBetween[0])
Else
MsgBox(16, 'Error1', 'Text not found')
EndIf
$aRegExp = StringRegExp($sHtml, '(?si).*?\Q<li class="rows3 bold" style="opacity: 0.2;">\E(.*?)\Q</li>\E.*?', 3)
If IsArray($aRegExp) Then
MsgBox(0, 'txt2', $aRegExp[0])
Else
MsgBox(16, 'Error2', 'Text not found')
EndIf