delphi 截取两个字符之间的内容

function Twms_DataCenter_DataGrail.copyBegin2EndStr(begindex, endindex, source: string): string; //截取两个字符之间的内容
var
  n, m: Integer;
begin
  n := Pos(begindex, source);
  m := Pos(endindex, source);
  Result := Copy(source, n + 1, m - n - 1);
end;

 

posted @ 2018-01-16 09:44  夏天的西瓜君  阅读(443)  评论(0编辑  收藏  举报