Validate Multiple Emails Comma Separated with javascript

后端 未结 9 2144
无人及你
无人及你 2021-01-12 05:03

I want to validate a string which can be an email or multiple emails separated by commas.

For example:

bill.gates@hotmail.com -> TRUE
bill -> FALSE

9条回答
  •  清歌不尽
    2021-01-12 05:47

    How about splitting the string into an array and looping through it passing just one e-mail address at a time?

提交回复
热议问题