日期:2014-05-20 浏览次数:21359 次
string t_val = "***2011/05/01\r\naaa\r\n***2011/05/07\r\nbbb\r\n***2011/06/09\r\nccc";
Regex reg = new Regex(@"(\*\*\*\d{4}?/\d{2}/\d{2})\r\n(?<Text>[\s\S].*)");
Match mt = reg.Match(t_val);
while (mt.Success)
{
Response.Write(mt.Groups["Text"].Value +"<br/>**********************<br/>");
mt = mt.NextMatch();
}