本文整理自网络,侵删。
取字符串与字符串中间的字符function GetStringBetween(const FullStr, StrLeft, StrRight: String): string;varidx_Start,idx_End,iStrCnt: Integer;beginResult:='';idx_Start := Pos(StrLeft,FullStr)+Length(StrLeft);idx_End:= Pos(StrRight,FullStr);iStrCnt:= idx_End - idx_Start;Result:=Copy(FullStr,idx_Start,iStrCnt);end;
相关阅读 >>
Delphi idhttp访问datasnap有密码验证的中间件
Delphi tstreamreader tfile assignfile读取文本文件
Delphi中如何捕获mediaplayer播放的视频中的每一帧 ?
更多相关阅读请进入《Delphi》频道 >>