赞
踩
常用正则表达式大全
(\=.*\-\-)|(\w+(%|\$|#|&)\w+)|(.*\|\|.*)|(\s+(and|or)\s+)|(\b(select|update|union|and|or|delete|insert|trancate|char|into|substr|ascii|declare|exec|count|master|into|drop|execute)\b)
(~|\{|\}|"|'|<|>|\?)
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/
[1-9]\d{5}(?!\d)
\d+\.\d+\.\d+\.\d+
Pattern sqlPattern = Pattern.compile("^[^`~!#$%^&*+=\\\\|{};:\"',/<>?]*$",
Pattern.CASE_INSENSITIVE);
Matcher m = sqlPattern.matcher(a);
while (m.find()) {
System.out.print(m.group());
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。