Last active
July 28, 2023 07:06
-
-
Save totoprayogo1916/9b8a874a0fb8150440d79c0723ca2a47 to your computer and use it in GitHub Desktop.
Pattern / regex for email input form
This file contains 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 type="email" name="email" value="" autocomplete="off" class="form-material-input" id="email" pattern="((?!\.)[\w\-_+.]*[^.])(@\w+)(\.\w+(\.\w+)?[^.\W])" required> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see : https://regex101.com/r/BuR8U8/2