A simple yet powerful Python program that validates email addresses using regular expressions (regex). This project checks whether an email follows the correct format β helping developers filter valid inputs before storage or processing.
- β Validates email structure (username, domain, TLD)
- β‘ Lightweight and fast β uses Pythonβs built-in
remodule - π§ Easy to integrate into larger projects
- π₯οΈ Command-line interface for quick validation
The script uses regex pattern matching to ensure the email follows standard rules:
username@domain.extension
Example of a valid email:
example123@gmail.com
Invalid examples:
example@.com
@domain.com
exampledomain
- Python 3.x
- No external libraries required (only
remodule)
-
Clone the repository
git clone https://github.com/Chirag04-bit/EMAIL-VALIDATOR.git
-
Navigate to the project folder
cd EMAIL-VALIDATOR -
Run the script
python Email_Validator.py
-
Input your email when prompted:
Enter your email: test@example.com -
The program will display whether itβs Valid or Invalid β β
Enter your email: hello.world@gmail.com
Valid Email β
Enter your email: hello@.com
Invalid Email β
Chirag Sharma π GitHub Profile