Site icon Sibeesh Passion

Find a number from a string and remove in jQuery

Find a number from a string and remove in JQuery
[js]
var str="Sibeesh007"
str.replace(str.match(/(\d+)/g)[0], ”).trim();
[/js]
Here str is my string.
I hope it helps.

Exit mobile version