正则匹配试题
string patten = "(\\[[^\\]]*\\])";
Regex reg = new Regex(patten);
MatchCollection matches=reg.Matches(t);
foreach (Match match in matches)
{
Response.Write(match.Value);
}