日期:2014-05-20 浏览次数:20463 次
void Main()
{
string str="WHERE ([Name] = @p__linq__0) OR ([Id] > @p__linq__1) OR ([Id] > @p__linq__8)";
str=Regex.Replace(str,@"@[^2]+?(\d+)(?=\)|$)","{$1}");
Console.WriteLine(str);
//WHERE ([Name] = {0}) OR ([Id] > {1}) OR ([Id] > {8})
}