Skip to content

Instantly share code, notes, and snippets.

@andrIvash
Created October 3, 2017 18:22
Show Gist options
  • Select an option

  • Save andrIvash/92296fe3671dac1c75bd4378521e9bbe to your computer and use it in GitHub Desktop.

Select an option

Save andrIvash/92296fe3671dac1c75bd4378521e9bbe to your computer and use it in GitHub Desktop.
email regexp
// 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