允许“+”(加号)进行电子邮件验证 [英] Allow “+” (plus) for email validation
本文介绍了允许“+”(加号)进行电子邮件验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请更改以下正则表达式以允许电子邮件地址中的+(加号)符号
@^([a-zA-Z0-9 _-。] + )@(([[0-9] {1,3}+ @。[0-9] {1,3}。[0-9] {1,3}。)|([a-zA -Z0-9 - ] + \+ @。)+))([a-zA-Z] {2,4} | [0-9] {1,3})(]?)$< br $>
问候,
Lalitha
解决方案
问候,
Lalitha
你可以使用这个方便的工具来实现目标
https://regex101.com/ [ ^ ]
您可以使用以下正则表达式,它将根据您的情况使用。
\ b [A-Z0-9 ._%+ - ] + @ [A-Z0-9 .-] + \。[AZ] {2 ,4} \b
Please change the below regex to allow + (plus) symbol in email address
@"^([a-zA-Z0-9_-.]+)@(([[0-9]{1,3}" + @".[0-9]{1,3}.[0-9]{1,3}.)|(([a-zA-Z0-9-]+\" + @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$"
Regards,
Lalitha
解决方案
"
Regards,
Lalitha
you can use this handy tool to achieve the goal
https://regex101.com/[^]
You can use following Regular expression that will work according to your condition.
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
这篇关于允许“+”(加号)进行电子邮件验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文