dimanche 7 juillet 2019

What pattern to use in a html input field to valideta french numbers format?

I am looking for the right pattern allowing to validate french numbers (positive integers) in an HTML input. i.e. thousand separator is a "space" Ex. of correct values: 1 / 12 / 123 / 1 234 / 12 345 / 123 456 / 1 234 567

I have tried th pattern bellow, but it does not work

<input pattern="([0-9]*[ ]*)*"/>

Thanks for your help

Aucun commentaire:

Enregistrer un commentaire