[a-z0-9_.]是正则表达式,意思是文件名称只能包含小写字母、数字、下划线和点。 转载自http://blog.csdn.net/yanli0823/archive/2010/02/05/5290422.aspx