A simple Python-based Email Validator that checks the validity of an email address with detailed feedback explaining why itβs invalid.
β Checks for:
- Missing or multiple
@symbols - Empty or malformed username / domain
- Consecutive or trailing special characters (e.g.,
..,--,++,.-, etc.) - Invalid domain or top-level domain (TLD) format
- Disallowed characters in username or domain
- Leading or trailing special symbols (
.,+,_,-)
β
Returns clear human-readable messages
β
Works without any external dependencies (only Pythonβs built-in re module)
β
Fully interactive β enter emails repeatedly until you quit
Enter an email: nitin--.--@gmail.com
Multiple special characters consecutively not allowed in local part.
Enter an email: sdf+++@g.com
Multiple special characters consecutively not allowed in local part.
Enter an email: nitin@gmail.com
β
Email looks valid.
Enter an email (or 'q' to quit): q
Goodbye!
- π§ Reach me for suggestions, ideas, or improvements!
- This project is released under the MIT License β youβre free to use, modify, and distribute it with attribution.