string where = "Name = @0 and CardStatus=@1 and IsActive";
问题:怎样把上面的字符串使用正规表达式进行解析,得到要查询的字段:Name CardStatus IsActive
我自己写了一个:Regex rege = new Regex(@"^\s?[A-Za-z0-9]+\s?=$");但是不行,
所以不得以在此请教大家
...全文
1591打赏收藏
关于一个c#正规表达式的问题
string where = "Name = @0 and CardStatus=@1 and IsActive"; 问题:怎样把上面的字符串使用正规表达式进行解析,得到要查询的字段:Name CardStatus IsActive 我自己写了一个:Regex rege = new Regex(@"^\s?[A-Za-z0-9]+\s?=$");但是不行, 所以不得以在此请教大家