Przejdź do treści

Programowanie

Notatki z wiedzy informatycznej

Powrót

Kategorie

  • AI
  • Ajax
  • Apache
  • Bez kategorii
  • Bootstrap
  • C#
  • cakePHP 3
  • cakePHP 4
  • cakePHP 5
  • Certyfikaty
  • Composer
  • Conda – Python
  • CSS3
  • D3js
  • Docker
  • Ethereum
  • GIT
  • Google
  • Hosting
  • HTML
  • HTTP
  • Javascript
  • Linux
  • Mail
  • MongoDB
  • MySQL
  • Node.js
  • OpenSSL
  • PHP
  • Plugins
  • PostgreSQL
  • Przeglądarki
  • React
  • Redis
  • sass
  • Security
  • SEO
  • Windows
  • WordPress

E-mail regex JS

const VALID_EMAIL_REGEX = new RegExp('^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$')
if( VALID_EMAIL_REGEX.test(email) ) { 
  ...
}
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address
Data publikacji 2 marca 20213 marca 2021Autor jornathanKategorie Javascript, Node.js

Nawigacja wpisu

Poprzedni Poprzedni wpis: Node – cookie
Następny Następny wpis: Node – sessions
Dumnie wspierane przez WordPress