/ Published in: HTML
                    
                                        If I ever need a regular expression for $99.99. Here it is.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 <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/>
Comments
                    Subscribe to comments
                
                