lb_icesea79:
procedure TForm1.Button1Click(Sender: TObject);
var
S, S1:string;
P: Integer;
begin
S:=Edit1.Text;
S1 := '';
P := Pos('//',S);
while P<>0do
begin
S1:=S1+Copy(S, 1, P)+'//';
if P < Length(S) then
S:=Copy(S, P + 2, Length(S) - P - 1)
else
S := '';
P := Pos('//',S);
end;
Edit2.Text:=S1;
end;