Day to day the Importance of text processing is becoming in high demand in the IT industries. Chat GPT is one of the game-changers in the NLU area. When your goal is to become an NLP expert, then I recommend you start with Regular Expression.
It’s not about data science or python programming, however, it is a general text pattern analysis method commonly available in all programming. So having a basic understanding of processing text using Regex (Regular Expression) may open various paths to Natural Language Processing.
Here let me show some basic practical examples of Regular Expression to use in Signup Form processing.
Building basic Sign-up forms in an application using regex

Creating an account in an application requires user login credentials to access and manage the account. In this username (user id) and password are collected from the user as inputs.

First, the user id is processed with the input using a search pattern (^[a-z]+\d*@[a-z]*.[a-z]*) and if the condition fails it will return as ‘Please check the Username or Password’.
Second, before the user id is verified, it checks the user id with the already stored id’s list (users). If the user id is already present, it returns ‘Username Already exists. Please try with another address’.
If the condition fails, it will move into validating the password with conditions (i.e., the entered password should begin with one upper case character and be followed by 5 alphanumeric characters) and processed using the search pattern ‘^[A-Z]\w{5}’.
Then it splits the user id up to the ‘@’ symbol from the input using the split function and stores 0th index characters into a list ‘name’.
Once the user id and password are verified it stored the user id and password in a separate list (users and pwd) and zipped that the collected user id and password are stored in a tuple for every user.
Output: The output shows that valid user IDs and passwords are collected and stored for each user for future access in the application.

I hope this article provides valuable insight into a regular expression and it is highly useful in manipulating, and analyzing the data and it has been used in various applications. However, try to understand every regex operation and apply them with respect to the pattern of your choice.
See you in the upcoming article!!!.
If you have any quires feel free to connect me on LinkedIn at www.linkedin.com/in/aswindsc
Thanks & Regards,
Aswin Balamurugan


