This project is a web application inspired by regex101.com, designed to provide core functionality for regex pattern matching and email validation. The application allows users to input a test string along with a regular expression (regex) and returns all matches found. Additionally, the app features an email validation tool to check the format of a given email address.
- Regex Matcher: Users can input a test string and a regex pattern to identify all matches within the string.
- Email Validator: A tool to check if a given email address is valid based on standard email formats.
- Flask-Based: The app is built using the Flask web framework for easy web deployment and routing.
- Responsive UI: Includes a user-friendly interface with HTML, CSS, and JavaScript for a smooth user experience.
Regex-Matching-Web-App-Project/
│
├── app.py # The core Python application file
├── static/
│ ├── css/
│ │ └── style.css # Custom styling for the web app
│ └── js/
│ └── script.js # JavaScript for additional functionality
└── templates/
├── index.html # Homepage with regex and email validation form
├── results.html # Page displaying regex matches
└── email_validator.html # Page displaying email validation results
- Users enter a test string and a regex pattern.
- On submission, the app processes the input using Python’s built-in
re
module to find matches. - The results are then displayed on a separate page (
results.html
), showing all the matches found.
- Users can validate an email by inputting it into the designated field.
- The app checks if the email follows a valid format.
- The result is displayed as either "Valid Email" or "Invalid Email" on
email_validator.html
.
- Flask: For building the web application and managing routes.
- HTML/CSS: For the structure and styling of the web pages.
- JavaScript: For alert functionality.
- Regex (re module): For matching patterns and validating input strings.
-
Clone the repository:
git clone https://github.com/Angad143/Regex-Matching-Web-App-Development-Project.git cd regex-matching-web-app
-
Install the dependencies:
pip install Flask
-
Run the application:
python app.py
-
Open a web browser and go to
http://localhost:5000
.
- Enter a regex pattern and a test string in the "Regex Matcher" section.
- Click Match Regex to view the results.
- For email validation, input an email in the Email Validator section and click Validate Email.
In this section, I'll walk you through the process of deploying machine learning projects on AWS, from launching an EC2 instance to making sure your app runs smoothly in the cloud. I've also linked the .md
files with detailed steps, which you can find on my GitHub.
You can view the complete deployment guide and steps in my GitHub repository below:
GitHub Link: Deployment Guide