Regular expression (RegEx) matching is a method of searching, finding, and manipulating text based on patterns. It allows you to define a pattern, or a set of rules, and then search within a text for instances that match that pattern. This is useful for tasks such as:
- Validating input,
- Searching for specific strings or patterns within a larger body of text,
- Extracting specific information from text data.
In this project my job is to replicate the core functionality of the regex101 website. This entails creating a web application that allows users to input a test string and a regular expression (regex) and displays all the matches found.
🔗You can try out the Regex matcher web app I created here.
-
Create a new directory
-
Set up virtual development environment to install Flask, a Python web framework
-
Initialize a new Flask application
-
Create HTML templates
-
Define a route to handle form submission
-
Render the results
-
Test the application
-
Add-on: Implement a new route where a user can validate if a given email id is valid or not.
-
Deploy the application on AWS Cloud.
- Python
- Flask
- HTML
- CSS