outlook有一種email地址格式
例如
下面寫個程序打開csv文件
private static final String repmail =
private static final String repname =
Pattern mailPattern = pile(repmail );
Pattern namePattern = pile(repname);
File file = new File(
FileInputStream is = new FileInputStream(file);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String input = null;
ArrayList list = new ArrayList();
while((input = br
Matcher matchermail = mailPattern
Matcher matchername = namePattern
String[] card = new String[
if(matchername
card[
}
if(matchermail
card[
}
if(card[
continue;
}
list
}//輸出 for(int i=
System
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19751.html