![]() |
AW: PosEx
Im Originalcode war das eine Endlosschleife ;)
|
AW: PosEx
Original?
Also das in Beitrag #6, so wie es jetzt ist, ist keine Endlosschleife. PS:
Delphi-Quellcode:
LastPos := 0;
while true do begin i := PosEx('<td align="center">', SubStr, LastPos + 1) if i = 0 then break; LastPos := i; end;
Delphi-Quellcode:
LastPos := PosEx('>"retnec"=ngila dt<', ReverseString(SubStr));
if LastPos > 0 then LastPos := Length(SubStr) - LastPos - 18;
Delphi-Quellcode:
(ReverseString aus Unit StrUtils)
SearchStr := '<td align="center">';
LastPos := PosEx(ReverseString(SearchStr), ReverseString(SubStr)); if LastPos > 0 then LastPos := Length(SubStr) - (LastPos - 1) - Length(SearchStr); |
AW: PosEx
Der Beitrag ist ja auch editiert worden. Aber nun genug davon :mrgreen:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:57 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz