1. public class Hello{  
  2.     public static void main(String[] args){  
  3.         String str="123assume345contribute";  
  4.         System.out.println(str.replaceAll("\\d+",""));  
  5.     }  
//删除字符串中的数字。 
function trimNumber(str){
return str.replace(/\d+/g,'');
}

js 、 java去除字符串中的数字

 


 
                    
            
                

相关文章:

  • 2022-02-11
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案