分享按钮
摘要: java过滤特殊字符的正则表达式[转载]2010-08-05 11:06Java过滤特殊字符的正则表达式关键字: java过滤特殊字符的正则表达式// 过滤特殊字符 public static String StringFilter(String str) throws PatternSyntaxException { // 只允许字母和数字 // String regEx = "[^a-zA-Z0-9]"; ... 阅读全文
posted @ 2011-07-27 16:13 草莓在努力 阅读(7744) 评论(0) 推荐(0) 编辑
摘要: <SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction Encrypt(theText) {output = new String;Temp = new Array();Temp2 = new Array();TextSize = theText.length;for (i = 0; i < TextSize; i++) {rnd = Math.round(Math.random() * 122) + 68;Temp[i] = theText.charCodeAt(i) + rnd;Temp2[i] = rn 阅读全文
posted @ 2011-07-27 13:42 草莓在努力 阅读(298) 评论(0) 推荐(0) 编辑