codinasion-archive / codinasion-programme

An open source codebase for sharing programming solutions.
https://codinasion.vercel.app/programme
MIT License
62 stars 147 forks source link

Check valid email address #1259

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Description

Write a programme to check a valid email address


A valid email address consists of an email prefix and an email domain, both in acceptable formats.

The prefix appears to the left of the @ symbol.

The domain appears to the right of the @ symbol.

Acceptable email prefix formats

Invalid email address Valid email address
abc-@mail.com abc-d@mail.com
abc..def@mail.com abc.def@mail.com
.abc@mail.com abc@mail.com
abc#def@mail.com abc_def@mail.com

Tracking Issues