Template:Form regexp dutch number
From Dashboard samenwerking Wijchen
Regexp for checking if a form input has Dutch numer format.
{{Form regexp dutch number}} Example in a formfield: {{{field|Voorgaand begroot|input type={{Form regexp dutch number}} |size=10 |placeholder=begroot |class=text-italic }}}
Regexps used:
/-$/ with inverse, to prevent '-' signs at the end of a number
/^[0-9,.-]*$/ to make sure the number only consists of digits and , . -