JavaScript regexp match against variable email domain

后端 未结 4 2037
执笔经年
执笔经年 2021-01-27 05:06

I am trying to have a clientside check, if an entered value:

  • is a valid email address
  • has the right domain name

I came up with following code

4条回答
提交回复
热议问题