使用java模式进行特殊字符检查?

请告诉我保存az,AZ,0-9以及下面提到的字符的代码

•。 期间•,逗号•? 问号•! 感叹号• – 破折号* •_下划线•()括号•:冒号•; 分号•美元符号•星号•©版权符号•®注册符号•§部分符号•@&符号•/ \前向和后斜杠•Ó锐角•Ç法国cedille

请帮帮忙……

用\ \(四次)换\

这是通过正则表达式检查电子邮件的示例

String fieldValue="allss@homtial.com"; String expression = "^[a-zA-Z0-9._-+$]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$"; CharSequence inputStr = fieldValue.trim(); Pattern pattern = Pattern.compile(expression, Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(inputStr); boolean match=false; if( matcher.matches()){ match=true; }