How to validate Input type using Regular Expression
validate using regular expression
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share​ ​their programming ​knowledge and build their careers.
Three letter country code validation
input type=”text” name=”country_code” pattern=”[A-Za-z]{3}” title=”Three letter country code”
Email address validation
^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
Date validation[yyyy-mm-dd]
^(19|20)dd[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$