62,266
社区成员
发帖
与我相关
我的任务
分享tring pattern = @"\b[1-9]\b|\b[1-2]\d\b|\b3[0-2]\b";Regex reg = new Regex(@"^[1-9]$|^[12][0-9]$|^3[0-2]$");
foreach (Match m in reg.Matches(str))
{
Response.Write(m.Value + "<br/>");
}