110,544
社区成员
发帖
与我相关
我的任务
分享
public static void Main(string[] args)
{
string str = "2009-05-01 11:31:25:867";
bool i= Regex.IsMatch(str, @"^\d{4}-\d{2}-\d{2}\s*?\d{2}:\d{2}:\d{2}\:\d{1,3}$");
Console.WriteLine(i);
Console.ReadKey();
}