Remove Number and Dot from a string using Ragex in Javascript -
i want remove numbers, decimal present after number (no after character) using regax.
example: let have string name abc4.5,asdjh44400.555 , dasqw123123.
then output should abc,asdjh , dasqw.
it should remove numbers , replace empty string.
i searched in google tried above requirement didn't succeed.
i have tried
var abc = "asp.net 4.5"; alert(abc.replace("[0-9]+(?:\.[0-9]*)?", ""));`
please me find solution using java script.
thanks in advance
'abc4.5,asdjh44400.555 , dasqw123123.'.replace(/\d+.\d+/g,'') // -> abc,asdjh , dasqw.
Comments
Post a Comment