I have a problem I have no idea how I can extract multiple links from html source code
html code are in Memo1 and links are extracted to memo2 ..
I use this function to extract links between 2 tangs or between 2 strings.
Function ExtractBetweenTags(Const Line, TagI, TagF: string): string;
var
i, f : integer;
begin
result := '';
i := Pos(TagI, Line);
f := Pos(TagF, Copy(Line, i+length(TagI), MAXINT));
if (i > 0) and (f > 0) then
Result:= Copy(Line, i+length(TagI), f-1);
end;
This gives only 1 link .. so how I can get all links I have tried many times but no luck :/