using System.Text.RegularExpressions;

arg="abc and";
str_Regex = ".*(=|and|exec|insert|select|delete|update|count|chr|mid|master|truncate|char|declare).*"

if (Regex.Matches(arg,str_Regex).Count > 0)
                        return false;
posted on 2008-05-06 23:57  阿米  阅读(693)  评论(0编辑  收藏  举报