Last active
April 27, 2018 19:11
-
-
Save rg3915/79e68f6f7dc3a77b08b1bebedd07f80d to your computer and use it in GitHub Desktop.
email validation with pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="email" name="email" type="email" class="form-control" pattern="\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}" title="Formato de e-mail inválido. Ex: [email protected]" placeholder="ex: [email protected]"> | |
and link | |
<!-- https://stackoverflow.com/a/46181 --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment