Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js replace all number

var str = "22V2isit W33Scho4ols!"; 
var n = str.replace(new RegExp("[0-9]", "g"), "");
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery give control focus 
Javascript :: puppeteer inner text 
Javascript :: sum the all values from an array 
Javascript :: convert hsl to hex code javascript 
Javascript :: angular find value in json array 
Javascript :: push elements to an object 
Javascript :: react leaflet marker onclick 
Javascript :: convert milliseconds to seconds js 
Javascript :: handle esc press js 
Javascript :: onclick change text color javascript 
Javascript :: vue js get width of element 
Javascript :: convert file into base64 in javascript 
Javascript :: modulo do angular httpclient 
Javascript :: REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE 
Javascript :: update object in react hooks 
Javascript :: update node js version ubuntu 
Javascript :: inline style vue 
Javascript :: how to check if a folder exists in node js 
Javascript :: javascript set and get cookie 
Javascript :: sum an array in javascript 
Javascript :: ngx paypa remove credit card 
Javascript :: add comma to number in javascript 
Javascript :: iterate over array backwards javascript 
Javascript :: Function in JavaScript that can be called only once 
Javascript :: datatable row color 
Javascript :: react native expo release apk 
Javascript :: digitalocean app platform node version 
Javascript :: indexof case insensitive javascript 
Javascript :: split a string every n characters javascript 
Javascript :: like in javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =