HTML Input Regex Only Nomor

<!--The tag below uses a regex-->
<input type="text" pattern="[0-9]*" />

<!--The same effect can be achieved by using type number tag-->
<input type="number" />
Wissam