1  private String replaceBlank(String str){
 2     String dest = null;
 3     if(str == null){
 4       return dest;
 5     }else{
 6       Pattern p = Pattern.compile("\\s*|\t|\r|\n");
 7       Matcher m = p.matcher(str);
 8       dest = m.replaceAll("");
 9       return dest;
10     }
11   }

 

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-08-02
  • 2021-12-07
猜你喜欢
  • 2021-08-04
  • 2022-03-11
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案