Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ExtractText(const Str: string; const Delim1, Delim2: string): string;
- var
- pos1, pos2: integer;
- begin
- result := '';
- pos1 := Pos(Delim1, Str);
- if pos1 > 0 then begin
- pos2 := PosEx(Delim2, Str, pos1+1);
- if pos2 > 0 then
- result := Copy(Str, pos1 + 1, pos2 - pos1 - 1);
- end;
- end;
Add Comment
Please, Sign In to add comment