![Cory House on Twitter: "TIL the browser's built-in form validation features are surprisingly robust. 1. Declare attributes like required, min, max, minLength, maxLength, and pattern (regex) on fields. 2. Call checkValidity() to Cory House on Twitter: "TIL the browser's built-in form validation features are surprisingly robust. 1. Declare attributes like required, min, max, minLength, maxLength, and pattern (regex) on fields. 2. Call checkValidity() to](https://pbs.twimg.com/media/EngzOdJXUAIegi5.jpg:large)
Cory House on Twitter: "TIL the browser's built-in form validation features are surprisingly robust. 1. Declare attributes like required, min, max, minLength, maxLength, and pattern (regex) on fields. 2. Call checkValidity() to
![regex - Regular expression limit length of character while not matching last character of string - Stack Overflow regex - Regular expression limit length of character while not matching last character of string - Stack Overflow](https://i.stack.imgur.com/7ezET.png)
regex - Regular expression limit length of character while not matching last character of string - Stack Overflow
![Validate input with K2 SmartForms - Part 2 : Simple Client Side Validation | IT Automation Industry News | Velocity IT Validate input with K2 SmartForms - Part 2 : Simple Client Side Validation | IT Automation Industry News | Velocity IT](https://www.velocity-it.com/wp-content/uploads/2015/02/k2-smartform-client-validation-image-10-max-length-and-validation-using-a-regular-expression-pattern.png)