代码:".*[/[`~!@#$%^&*_-/+<>:/]]{1,}.*"
错误日志:
java.util.regex.PatternSyntaxException: Illegal character range near index 17
.*[/[`~!@#$%^&*_-/+<>:/]]{1,}.*
^
at java.util.regex.Pattern.error(Pattern.java:1686)
java用正则表达式判断是否有特殊字符
------解决方案--------------------
去掉+,-试试