Regex for validating multiple E-Mail-Addresses

后端 未结 10 1675
忘了有多久
忘了有多久 2020-12-01 00:32

I got a Regex that validates my mail-addresses like this:

([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]

10条回答
  •  -上瘾入骨i
    2020-12-01 00:46

    Why not just split on the semicolon and then validate each potential email address using your existing regexp ? Writing one huge regexp is going to be very difficult and a maintenance nightmare, I suspect.

提交回复
热议问题