//中文替换为""
    public String replaceChineseToNULL(String s){
        String reg = "[\u4e00-\u9fa5]";
        Pattern pat = Pattern.compile(reg);
        Matcher m=pat.matcher(s);
        return m.replaceAll("");
    }

  这样调用方法传递一个串会自动将串内中文替换为空 ""

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-03
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
相关资源
相似解决方案