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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360