@jmcanterafonseca +1

\D = match any non-digit character

```js
input.value = input.value.replace(/\D+/g, "");

// eg
"(999) 999-9999".replace(/\D+/g, ""); // "9999999999"

```