开发者

Validation of multiple email list

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 add开发者_C百科ress separated by colons.

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

am doing this asp.net


This should do it:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜