解决方案 »

  1.   

                string[] vtl= Regex.Split("我是中国人\r\n我爱我的祖国\r\n壹加壹等于贰", @"\r\n");
                MessageBox.Show(vtl[1]);
      

  2.   

       string str = "我是中国人\n我爱我的祖国\n壹加壹等于贰";
                string pattern = @"(?<=\n)[^\n]*我爱[^\n]*(?=\n)";
                Regex regex = new Regex(pattern);
                bool b = Regex.IsMatch(str, pattern);
                string result = Regex.Matches(str, pattern)[0].ToString();
                Debug.WriteLine(result);