sorry for late reply but i just want you to know that iveseen your post already yesterday and i made a new code that now works here
procedure TfrmTags.btnUrlClick(Sender: TObject);
var
i:integer;
onPos:integer;
a:string;
b:string;
begin
mmoPutUrl.Clear;
a := 'http://';
for i := 0 to mmoNoUrl.Lines.Count - 1 do
begin
b := AnsiLowerCase(mmoNoUrl.Lines.Strings[i]);
if AnsiContainsStr(b,a) then
begin
onPos := AnsiPos(a,b);
insert('[url]',b,onPos);
mmoPutUrl.Lines.Add(b + '[/url]');
end;
end;
end;
so thanks again