I am looking to eliminate all non-numeric symbols and punctuations except for periods ".". I have managed to remove all non-numeric symbols using the following code:
if (!/^[0-9]+$/.test(this.value)) {
this.value = this.value.replace(/\D/, "");
}
Can someone guide me on how to achieve this? Thank you for your assistance.