Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Regex for multiple email Address Validation

I want to validate email inputs on my app with regex in Angular. But there is a problem, I want a multiple email validation with regex that user just can enter the email like that

Examples:

*****@zigurat.com 
*****@test.com 
*****@partlastic.com 

**** can be anything but after @ required with multiple email like UP

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

can you help me with multiple email validation in Angular with regex

thanx a lot

>Solution :

You can test against multiple fixed domains using the following construction

^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@((zigurat\.com)|(test\.com)|(partlastic\.com))$

The part in front of the @ follows the JavaScript- and Perl-compatible regular expression for email addresses.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading