110,537
社区成员
发帖
与我相关
我的任务
分享
private void Page_Load(object sender, System.EventArgs e)
{
string str =@"^\d{2}\s*\|\d{4}\s*\|\d{1}\s*\|\d{2}\s*$";
string s = "55|5678|8|44";
Regex r = new Regex(str);
Match m = r.Match(s);
if(m.Success)
{
Response.Write(m.ToString());
}
}