Created
October 3, 2017 18:22
-
-
Save andrIvash/92296fe3671dac1c75bd4378521e9bbe to your computer and use it in GitHub Desktop.
email regexp
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
| // HTML5 input type=email regexp | |
| const emailRegexp = /^[a-zа-я0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zа-я0-9-]+(?:\.[a-zа-я0-9-]+)+$/i; | |
| console.log('--- ', emailRegexp.test('text@yandex.ru')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment