来自万一老师博客
博客地址:http://www.cnblogs.com/del/archive/2007/12/11/991479.html
//分割字符串 ExtractStrings
var
s: String;
List: TStringList;
begin
s := 'about: #delphi; #pascal, programming';
List := TStringList.Create;
ExtractStrings([';',',',':'],['#',''],PChar(s),List);
//第一个参数是分隔符; 第二个参数是开头被忽略的字符
ShowMessage(List.Text); //about
//delphi
//pascal
//programming
List.Free;
end;