//截取##之间的内容,检索所有的数据
string a = "select * from yw_020102 where CustomerNo='#CustomerNo#'";
Regex reg = new Regex("(?i)(?<=#)[^a]*(?=#)");//commend by danielinbiti
MatchCollection mc = reg.Matches(a);
foreach (Match m in mc)
{
Console.WriteLine(m.Value);
}
return;

相关文章:

  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-04
  • 2022-01-22
  • 2021-11-22
  • 2021-09-21
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案