Guest User

Untitled

a guest
Jul 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function ExtractText(const Str: string; const Delim1, Delim2: string): string;
  2. var
  3. pos1, pos2: integer;
  4. begin
  5. result := '';
  6. pos1 := Pos(Delim1, Str);
  7. if pos1 > 0 then begin
  8. pos2 := PosEx(Delim2, Str, pos1+1);
  9. if pos2 > 0 then
  10. result := Copy(Str, pos1 + 1, pos2 - pos1 - 1);
  11. end;
  12. end;
Add Comment
Please, Sign In to add comment