Find a number from a string and remove in jQuery
May 31, 2015
Find a number from a string and remove in JQuery
var str="Sibeesh007" str.replace(str.match(/(\d+)/g), '').trim();
Here str is my string.
I hope it helps.
I am Sibeesh Venu, an Engineer by Profession and Writer by Passion. 2 times Microsoft MVP, 3 times C# Corner MVP, DZone MVB, Author, Speaker, Full Stack Developer.
- December 29, 2013
- June 30, 2016