asp.net - regular express match e-mail domain -
how use regular expression check e-mail addresses, ensuring domain in e-mail specific domain. using asp.net
example. company name abc , employee e-mail addresses on domain abc.com (e.g. john.doe**@abc.com** or donal.smith**@abc.com**)
my application should not allow entry of email address ending domain other @abc.com. entry of email john.oh**@gmail.com *should fail*** john.oh**@abc.com *should pass***.
the domain can mixed case, upper or lower. @abc.com, @abc.com @abc.com etc should allowed.
i think . throwing me off.
thanks taking look
check domain names regex.
"(?i)^.+@abc[.]com$"
or
"^.+@[aa][bb][cc][.][cc][oo][mm]$"
Comments
Post a Comment