这两个在谷歌上不好搜啊
System.Text.RegularExpressions.Regex.IsMatch(filename,"^.");
System.Text.RegularExpressions.Regex.IsMatch(filename,"^$");谢谢