string getDayValue(string p)
{
string pattern = @"[0-9]+";
// 创建 Regex 对象并调用 Matches 方法获取所有匹配结果
MatchCollection matches = Regex.Matches(p, pattern);
int indexs = 0;
foreach (Match match in matches)
{
if(indexs == 0)
{
p = match.Value;
}
indexs++;
}
return p;
}
04-19
3535
08-18