Hi!
Ich werds kurz erklären...
Hab nen String wo mehrmals '<quote>' und '</quote>' vorkommt.
Dann mach ich das:
Delphi-Quellcode:
Pos1 := Pos('<quote>',S);
Pos2 := Pos('</quote>',S);
S := Copy(S,Pos1,Pos2);
Text := StringReplace(Text,S,'',[rfIgnoreCase]);
Leider gibt das 2. Pos das letzte Vorkommen von '</quote>' zurück, und nicht das erste, S enthält also dann den kompletten Text vom 1. '<quote>' bis zum allerletzten '</quote>'
Was mach ich falsch?
Habt ihr evtl ne bessere Idee?