111,120
社区成员
发帖
与我相关
我的任务
分享
(?s)(?<=bc).*?(?=45)
string str = "abcdefghij456 bcdefij456";
foreach (Match reg in Regex.Matches(str, @"bc\w+?45"))
{
Console.WriteLine(reg.Value);
}