Git Product home page Git Product logo

hajarbenjat / validating-an-email-address-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

This is a simple Python GUI application that validates email addresses using regular expressions. It checks for basic email format validation and also validates email addresses for popular email services such as Gmail, Outlook (including Hotmail), and Yahoo.

License: MIT License

Python 100.00%
email python re tkinter-gui validator

validating-an-email-address-python's Introduction

Email Validator GUI

Python License

This is a simple Python GUI application that validates email addresses using regular expressions. It checks for basic email format validation and also validates email addresses for popular email services such as Gmail, Outlook (including Hotmail), and Yahoo.

How to Use

  1. Make sure you have Python installed on your system.
  2. Install the required packages by running the following command:
    pip install tk
    
  3. Run the script email_validator_gui.py.
  4. Enter an email address in the provided input field and click the "Validate Email" button.
  5. The application will display a message box indicating whether the email address is valid or not.

Email Validation

The script uses regular expressions to perform email validation. The basic pattern for email validation is defined as follows:

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

This pattern checks for basic email format validation, ensuring that the email address contains a local part, "@" symbol, domain name, and top-level domain with at least two characters.

Popular Email Services

The script also includes regular expression patterns to check for specific email services such as Gmail, Outlook (including Hotmail), and Yahoo. If the email address matches any of these patterns, the application displays a more specific validation message.

Input Validation

Before performing email validation, the application checks if the input field is empty. If no email address is provided, a warning message will be displayed.

Please note that while this application performs basic email format validation, it does not guarantee the existence or deliverability of the email addresses.

Examples of email addresses

Here are some examples of email addresses that can be tested using the Email Validator GUI:

Valid Email Addresses:

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

Invalid Email Addresses:

john.doe

alice.smith@com

mike123@123

jane_doe@outlook

support@company

Email Addresses for Popular Services:

[email protected] (Valid Gmail address)

[email protected] (Valid Outlook/Hotmail address)

[email protected] (Valid Yahoo address)

Feel free to use and modify this code to enhance your Python programming skills! ^^

validating-an-email-address-python's People

Contributors

hajarbenjat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.