string Original="first line/n/rsecond line";
string str = Regex.Replace(Original, "^", "> ", RegexOptions.Multiline);
string test = "This is a <EM>first</EM> test";
//贪婪表达式(不用回溯,所以会快)
Regex regx = new Regex("<.+>");
MatchCollection mats = regx.Matches(test);
//懒惰性表达式(因为要回溯,所以会慢)
Regex regx1 = new Regex("<.+?>");
MatchCollection mats1 = regx1.Matches(test);
//这个方法最佳( 惰性扩展的一个替代方案)
Regex regx2 = new Regex("<[^>]+>");
MatchCollection mats2 = regx2.Matches(test);