如何提取文本文件或者网页里面的email地址?最好能够速度比较快的。比如如下地址:[email protected]>, "闫立国" <[email protected]>, "闫成至" <[email protected]>, "闫超" <[email protected]>, "佟志强" <[email protected]>, "邹力新" <[email protected]>, "紫怡书吧(转大明收)" <[email protected]>, "庄小霞" <[email protected]>, "祝毓敏" <[email protected]>, "诸奇亮" <[email protected]>, "朱月楼" <[email protected]>, "朱耀庭" <[email protected]>, "朱彦昭" <[email protected]>, "朱新华" <[email protected]>, "朱巍" <[email protected]>, "朱清华" <[email protected]>, "朱建路" <[email protected]>,
解决方案 »
- 把ClientDataSet作为本地数据集,连接本地文本文件后增加大量数据后,都删除掉,再对其操作,其慢无法忍受,怎么办?
- delphi对access数据操作,like in()出错!!
- 紧急!怎样获取excel工作表中的数据
- 请问 dbgridEH 如何在 列头中加入背景 图 ????? 急!!!!!!! 我想 dbgridEH 在 某一列头中加入背景 图 ,但不能把列头
- 关于编码的问题:请问BIG5和GB这两种编码的范围各是多少!
- 看了一晚以前的帖子,不知不觉天竟然亮了……
- 关于文本文件的疑问?
- 心里很是不爽,散分!
- 为什么这样会导致语法错误??关于SQL的UPDATE语句的。
- 如何取到服务器的时间?精确到毫秒
- 热键!
- win98下可以用MSDE2000(+SP3)数据库吗?
var
i,j:Integer;
lg,lt:Integer;
List1,List2,List3:TStrings;
begin
List1:=TStringList.Create;
List2:=TStringList.Create;
List3:=TStringList.Create;
List2.LineBreak:=',';
List1.LoadFromFile('d:\2.txt');
for i := 0 to List1.Count - 1 do
begin
List2.Text:=List1[i];
for j := 0 to List2.Count - 1 do
begin
lt:=Pos('<',List2[j]);
lg:=Pos('>',List2[j]);
if (lt>=0)and(lg>=0) then
begin
List3.Add(Copy(List2[j],lt+1,lg-lt-1));
end;
end;
end;
List3.SaveToFile('d:\1.txt');
end;
List1.Free;
List2.Free;
List3.Free;