62,046
社区成员
发帖
与我相关
我的任务
分享
string str = @"abcdefg\n123456";
string pat = @"(?<=\\n)[\w]*";
Regex regex = new Regex(pat);
Console.WriteLine(str);
Console.WriteLine(regex.Match(str).Value);