Thursday 15 April 2010

html5 - regex for pattern in input type for version -



html5 - regex for pattern in input type for version -

what should input type="" version ? eg: 12.1.3.0

i know can utilize pattern should regex ?

this should work

<input pattern="[0-9]*.[0-9]*.[0-9]*.[0-9]*" type="text">

as version maintain increasing, not know upto how many digits each field go, utilize [0-9]* match each field

html5 input

No comments:

Post a Comment