This project is a simple and practical Python + Streamlit application that extracts all email addresses (any domain) from a given text using Regular Expressions.
- ✅ Extract email addresses from text (Gmail, Yahoo, Outlook, custom domains, etc.)
- ✅ Simple and user‑friendly Streamlit interface
- ✅ Uses a standard and reliable Regular Expression
- ✅ Beginner‑friendly and easy to understand
- ✅ Easily extendable (export to file, remove duplicates, etc.)
- Python 3
- Streamlit
- Regular Expressions (
re)
project-folder
│
├── test.py
├── gmail.png
└── README.md
Make sure the following are installed on your system:
Python 3.8+ pip (Python package manager) Install Streamlit Run the following command in your terminal or command prompt:
pip install streamlit
streamlit run test.py
Enter text containing Gmail addresses Click Extract Email The extracted mail addresses will be displayed as a list
Contact us at:
Contact us at:
info@gmail.com
support@yahoo.com
admin@company.ir
help@my-site.co.uk
[
'info@gmail.com',
'support@yahoo.com',
'admin@company.ir',
'help@my-site.co.uk'
]
The application uses the following regular expression to extract email addresses:
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}