Asi takto nejako (pseudo-pascal):
Kód:var Del: Boolean; Del:=False; while not Eof(In) do begin ReadLn(In,S); if UpCaseStr(Copy(S,1,4))='<DIV' and Copy(S,Pos('NAME=',UpCaseStr(S)), Length(S)-1) in WantToDelete then Delete:=True; if UpCaseStr(S)='</DIV>' then Delete:=False; if not Del then WriteLn(Out,S); end;





Odpověď s citací