用正则表达式替换示例string Demo = Regex.Replace("20071220"@"(d{4})(d{2})(d{2})"@"$1-$2-$3 23:59:59")

相关文章: