多个邮件列表验证 [英] Validation of multiple email list

查看:79
本文介绍了多个邮件列表验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我半冒号分隔的电子邮件列表验证工作,这是工作很好,没有问题
上午uising如下因素EX presion公司(; \\ w +([ - +'。] \\ w +)* @ \\ w +( - \\ w +)* \\ \\ w +([ - []。 ] \\ w +)*)+

am working on a validation of email list separated by semi colon, it is working fine and there is no problem Am uising folowing expresion (;?\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)+

现在我想扩展这个,以便它可以接受
  结束分号应是可接受的。
  电子邮件地址列表分析应该是聪明在这里过滤任何空间,额外的半冒号结果
  等等
  它应该也接受电子邮件地址,用冒号分隔。

now i want to extend this so that it can accept Ending semicolon should be acceptable. Email address list parsing should be smarter here to filter any spaces, extra semi colons
etc. It should also accept email address separated by colons.

任何帮助将得益于结束,因为我不是经常EX pression天才

any help will end in thanks as am not that genius in regular expression

在做这个asp.net

am doing this asp.net

推荐答案

这应该这样做:

(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([;: ]+)?)+

这篇关于多个邮件列表验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆