unit U_Test;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, StrUtils;
type
TForm1 =
class(TForm)
Memo_Quellcode: TMemo;
Memo_Links: TMemo;
Button1: TButton;
Button2: TButton;
Memo_fertig: TMemo;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Memo_Links.Clear;
end;
procedure TForm1.Button1Click(Sender: TObject);
var i:integer;
begin
for i:=1
to Memo_Quellcode.Lines.Count
do
// String wo kopiert wird #=============== von WO =================#============================== WIE WEIT ====================================
Memo_Links.Lines.Add(Copy(Memo_Quellcode.Lines[i],POS('
<a href="',Memo_Quellcode.Lines[i])+7,PosEx('
">',Memo_Quellcode.Lines[i],POS('
<a href="',Memo_Quellcode.Lines[i]))));
end;
procedure TForm1.Button2Click(Sender: TObject);
var i:integer;
begin
For i:=1
to Memo_Links.Lines.Count
do
begin
Memo_fertig.Lines.Add(COPY(Memo_Links.Lines[i],0,Length(memo_Links.Lines[i])-7));
end;
end;
end.