摘要: JavaScript - 正则表达式 正则表达式(regular expression)对象包含一个正则表达式模式(pattern)。它具有用正则表达式模式去匹配或代替一个串(string)中特定字符(或字符集合)的属性(properties)和方法(methods)。 正则表达式构造函数: new RegExp(“pattern“[,“flags“]); 参数说明: p... 阅读全文
posted @ 2006-12-19 09:12 Ame 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 设为主页: 【设为主页】 阅读全文
posted @ 2006-12-14 11:40 Ame 阅读(156) 评论(0) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions;if(strContent.Trim() != ""){string[] unlegal2=new string[5]{"脏话。。。"} ;for (int i = 0;i<unlegal2.Length ;i++){Regex content_1 =new Regex(unlegal2[i]);Match conte... 阅读全文
posted @ 2006-02-21 17:10 Ame 阅读(669) 评论(2) 推荐(1) 编辑
摘要: CREATE PROCEDURE GetData @tblName varchar(255), -- 表名 @strGetFields varchar(1000) = '*', -- 需要返回的列名 @strWhere varchar(1500) = '', -- 查询条件 (注意: 不要加 where) @fldName var... 阅读全文
posted @ 2005-06-14 11:07 Ame 阅读(398) 评论(0) 推荐(0) 编辑
摘要: ASP.NET常见安全问题 一、SQL语句漏洞 许多程序员在用sql语句进行用户密码验证时是通过一个类似这样的语句来实现的: Sql="Select * from 用户表 where 姓名 = '" + name + "' and 密码 = '" + password + "'" 通过分析可以发现,上述语句存在着致命的漏洞。当我们在用户名称中输入下面的字符串时:test' or '1' = '1,... 阅读全文
posted @ 2005-06-08 11:06 Ame 阅读(761) 评论(1) 推荐(0) 编辑