Regex to DISALLOW email addresses like "mail.ru" and "yandex.com"

4 years 7 months ago #1 by Parag
Hi,

I have recently purchased Reg Val Pro.
Can you please tell me the regex to DISALLOW email addresses like "mail.ru" and "yandex.com"?
4 years 7 months ago #2 by Function90
Hello Parag,

For your case it will be like,
^([a-z0-9]+)@((?!(yahoo|gmail))[[email protected]]+).([a-z0-9]+)$

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
4 years 7 months ago #3 by Parag
Hello,

Actually I wanted a regex to DISALLOW mail.ru and yandex.com. It should allow all emails other than from these 2 providers. The one you gave above, it seems, allows only yahoo and gmail.
4 years 7 months ago #4 by Function90
Sorry, i have put yahoo and gmail.

Use this
^([a-z0-9]+)@((?!(mail.ru|yandex.com))[a-z0-9]+).([a-z0-9]+)$

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
Powered by Kunena Forum
Cron Job Starts