Hello,
I need to validate email address in the update user form but I am facing
with one issue. I need to allow email addresses only but not emails from
specific domains. e.g. acme.com and acme.eu
If I have check for email addresses only,everything is working but if I
add a check for "acme.com" and "acme.eu" (see second regex below), SSPR
says that email address is not valid. But interesting is that the
expression looks good. I tested it on https://regex101.com/

this check the emails and this works but I need to exclude some
domains:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

and this does not work in SSPR/PWM:
(?=^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$)(?!^[a-zA-Z0-9._%+-]+@acme\.com)(?!^[a-zA-Z0-9._%+-]+@acme\.eu)

How can I write an expression which will validate email addresses and
will filter some specific emails (something like exclude list of email
addresses)?

Regards,
Milan


--
mjuricek
------------------------------------------------------------------------
mjuricek's Profile: https://forums.netiq.com/member.php?userid=1616
View this thread: https://forums.netiq.com/showthread.php?t=56344