Return to Snippet

Revision: 59241
at August 27, 2012 03:10 by chrisaiv


Initial Code
<input type="text" pattern="^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$" name="widgetprice" id="widgetprice" size="25" value="<%= widget.price %>" required/>

Initial URL

                                

Initial Description
If I ever need a regular expression for $99.99. Here it is.

Initial Title
HTML5: Input box with regular expressions

Initial Tags
html5

Initial Language
HTML