Regex for allowing only alphanumeric characters

4 years 7 months ago #1 by Parag
Hello,

I just now purchased and installed the Reg Val Pro plugin. I want to allow only alphanumeric characters (small letters only) in username, password and email fields. Please share the regex for the same.

Regards,
4 years 7 months ago #2 by Function90
Hello Parag,

For username and password field you can use : ^[a-z0-9]+$
and for email : ^[[email protected]]+$

Please let me know if it works for you.

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 )
The following user(s) said Thank You: Parag
4 years 7 months ago #3 by Parag
Thanks. Its working as intended.

Can you please tell me the regex to DISALLOW email addresses like "mail.ru" and "yandex.com"?
Powered by Kunena Forum