Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Misc
8.8K+ articles
Python Programs
4.0K+ articles
Strings
3.3K+ articles
Python-pandas
1.7K+ articles
Python string-programs
572+ articles
python-string
255+ articles
python-regex
79+ articles
Python Regex-programs
38 posts
Recent Articles
Popular Articles
Categorize Password as Strong or Weak using Regex in Python
Last Updated: 28 March 2023
Given a password, we have to categorize it as a strong or weak one. There are some checks that need to be met to be a strong password. For a weak password, we need to retu...
read more
Python
python-regex
Python Regex-programs
Python program to Count Uppercase, Lowercase, special character and numeric values using Regex
Last Updated: 28 August 2023
Prerequisites: Regular Expression in PythonGiven a string. The task is to count the number of Uppercase, Lowercase, special character and numeric values present in the str...
read more
Python
Python Programs
python-regex
Python Regex-programs
Extract IP address from file using Python
Last Updated: 10 February 2022
Let us see how to extract IP addresses from a file using Python. Algorithm : Import the re module for regular expression.Open the file using the open() function.Read all ...
read more
Python
python-utility
python-regex
Python Regex-programs
Python program to extract Strings between HTML Tags
Last Updated: 17 May 2023
Given a String and HTML tag, extract all the strings between the specified tag.Input : 'bGfg/b is bBest/b. I love bReading CS/b from it.' , tag = "br"Output : ['Gfg', 'Bes...
read more
Python
Python Programs
python-regex
Python Regex-programs
How to Remove repetitive characters from words of the given Pandas DataFrame using Regex?
Last Updated: 06 February 2023
Prerequisite: Regular Expression in PythonIn this article, we will see how to remove continuously repeating characters from the words of the given column of the given Pand...
read more
Python
python-regex
Python-pandas
Python pandas-dataFrame
Python Regex-programs
Extract punctuation from the specified column of Dataframe using Regex
Last Updated: 29 December 2020
Prerequisite: Regular Expression in PythonIn this article, we will see how to extract punctuation used in the specified column of the Dataframe using Regex.Firstly, we are...
read more
Python
python-regex
Python-pandas
Python pandas-dataFrame
Python Pandas-exercise
Python Regex-programs
Python program to find files having a particular extension using RegEx
Last Updated: 29 December 2020
Prerequisite: Regular Expression in PythonMany of the times we need to search for a particular type of file from a list of different types of files. And we can do so with ...
read more
Python
Python Programs
python-regex
Python Regex-programs
How to check if a string starts with a substring using regex in Python?
Last Updated: 28 August 2023
Prerequisite: Regular Expression in PythonGiven a string str, the task is to check if a string starts with a given substring or not using regular expression in Python.Exam...
read more
Python
python-regex
Python Regex-programs
How to extract date from Excel file using Pandas?
Last Updated: 02 January 2023
Prerequisite: Regular Expressions in PythonIn this article, Let's see how to extract date from the Excel file. Suppose our Excel file looks like below given image then we ...
read more
Python
python-regex
Python-pandas
Python pandas-datetime
Python Regex-programs
Python - Check if String Contain Only Defined Characters using Regex
Last Updated: 05 January 2024
In this article, we are going to see how to check whether the given string contains only a certain set of characters in Python. These defined characters will be represente...
read more
Misc
Python
python-regex
Python Regex-programs
Python program to find Indices of Overlapping Substrings
Last Updated: 31 July 2023
To count the number of overlapping sub-strings in Python we can use the Re module. To get the indices we will use the re.finditer() method. But it returns the count of non...
read more
Python
Programming Language
Python Programs
python-regex
Python string-programs
Python Regex-programs
Python program to find the type of IP Address using Regex
Last Updated: 02 September 2021
Prerequisite: Python RegexGiven an IP address as input, write a Python program to find the type of IP address i.e. either IPv4 or IPv6. If the given is neither of them the...
read more
Technical Scripter
Python
Python Programs
Technical Scripter 2020
python-regex
Python Regex-programs
Converting a 10 digit phone number to US format using Regex in Python
Last Updated: 29 December 2020
Text preprocessing is one of the most important tasks in Natural Language Processing. You may want to extract number from a string. Writing a manual script for such proces...
read more
Python
python-regex
Python Regex-programs
Validate an IP address using Python without using RegEx
Last Updated: 31 July 2023
Given an IP address as input, the task is to write a Python program to check whether the given IP Address is Valid or not without using RegEx.What is an IP (Internet Proto...
read more
Strings
Python
Python Programs
DSA
python-regex
Python Regex-programs
Check if license plate number is formatted correctly using Python
Last Updated: 10 July 2024
In various administrative and practical applications, validating the format of a license plate number is crucial. Ensuring that a license plate number adheres to a specifi...
read more
Python
Picked
Python Regex-programs
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !