procedure TForm1.Button1Click(Sender: TObject);
var
a,b : char;
temp : string;
ilosc,i,j : integer;
begin
ilosc := Memo1.Lines.Count;
for i :=1 to ilosc do
for j:=1 to length(Memo1.Lines[i]) - 1 do
begin
temp := Memo1.Lines[i];
a := temp[j];
b := temp[j+1];
if (a = '%') and (b = '0') then
begin
Insert('
', temp, j+2);
Delete(temp, j, 2);
Memo1.Lines[i] := temp;
end;
end;
end;