Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#6

Re: nur bestimmten teil eines Strings auslesen.

  Alt 27. Jan 2006, 16:11
Funzt perfekt:

Delphi-Quellcode:
function GetBracketContent(str: String): TStringList;
begin
result:=TStringList.create;
while pos('{',str)>0 do
begin
result.add(copy(str,pos('{',str)+1,pos('}',str)-pos('{',str)-1));
str:=copy(str,pos('}',str)+1,length(str)-pos('}',str));
end;
end;
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat