procedure TForm1.Button1Click(Sender: TObject);
var
wStr: string;
wPos1, wPos2: Integer;
begin
wStr := '您好!<img src="S1002.jpg"/>天天开心!';
wPos1 := pos('<img', wStr);
wPos2 := pos('/>', wStr);
wPos2 := wPos2 + Length('/>');
caption := copy(wStr, wPos1, wPos2 - wPos1);
end;
delphi如何查找并截取字符串
最新推荐文章于 2025-02-10 00:59:25 发布
2万+

被折叠的 条评论
为什么被折叠?



