I have an input field I want the input value to be only numbers and decimals nothing more but the problem is that when I type the Unicode characters and letters and semicolons the input value excepts it how do I achieve that.
let newValue = item.value.replace(new RegExp(/[a-z] && [@!#$%^&*()_+}{}|:,=] /,'ig'), "");
item.value = newValue;