we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "js replace all number"
Camil
13 Oct 2020
1var str = "22V2isit W33Scho4ols!"; 
2var n = str.replace(new RegExp("[0-9]", "g"), "");