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
Python Programs
4.0K+ articles
Strings
3.3K+ articles
Python-pandas
1.7K+ articles
python
1.2K+ articles
Python string-programs
572+ articles
python-string
255+ articles
Python Regex-programs
38+ articles
python-regex
79 posts
Recent Articles
Popular Articles
Open a File by Regular Expression in Python
Last Updated: 22 February 2024
Regular expressions (regex) are powerful tools for pattern matching and manipulation of text data. When it comes to opening files based on a specific pattern or criteria, ...
read more
Python
Python Programs
Picked
python-regex
Python file-handling-programs
Character Encoding Detection With Chardet in Python
Last Updated: 21 March 2024
We are given some characters in the form of text files, unknown encoded text, and website content and our task is to detect the character encoding with Chardet in Python. ...
read more
Python
Python Programs
Picked
encoding-decoding
python-regex
Parse and Clean Log Files in Python
Last Updated: 20 March 2024
Log files are essential for comprehending how software systems behave and function. However, because log files are unstructured, parsing and cleaning them can be difficult...
read more
Python
Python Programs
Picked
python-regex
python-file-handling
How to Import Regex in Python
Last Updated: 17 July 2024
Regex is a built-in library in Python. You can use the re module to work with regular expressions. Here are some basic examples of how to use the re module in Python:Examp...
read more
Python
Picked
python-regex
How Can I Find All Matches to a Regular Expression in Python?
Last Updated: 30 August 2024
In Python, regular expressions (regex) are a powerful tool for finding patterns in text. Whether we're searching through logs, extracting specific data from a document, or...
read more
Python
Picked
python-regex
Python Regex: Replace Captured Groups
Last Updated: 03 September 2024
Regular Expressions, often abbreviated as Regex, are sequences of characters that form search patterns. They are powerful tools used in programming and text processing to ...
read more
Python
Picked
python-regex
How to Find Chinese And Japanese Character in a String in Python
Last Updated: 15 September 2024
Detecting Chinese or Japanese characters in a string can be useful for a variety of applications, such as text preprocessing, language detection, and character classificat...
read more
Python
Picked
python-string
python-regex
re.search() in Python
Last Updated: 12 May 2025
re.search() method in Python helps to find patterns in strings. It scans through the entire string and returns the first match it finds. This method is part of Python's re...
read more
Python
python-regex
python
re.match() in Python
Last Updated: 16 December 2024
re.match method in Python is used to check if a given pattern matches the beginning of a string. It’s like searching for a word or pattern at the start of a sentence. For ...
read more
Python
python-regex
python
re.findall() in Python
Last Updated: 30 December 2024
re.findall() method in Python helps us find all pattern occurrences in a string. It's like searching through a sentence to find every word that matches a specific rule. We...
read more
Python
python-regex
python
re.sub() - Python RegEx
Last Updated: 10 December 2024
re.sub() method in Python parts of a string that match a given regular expression pattern with a new substring. This method provides a powerful way to modify strings by r...
read more
Python
python-regex
python
re.subn() in Python
Last Updated: 30 December 2024
re.subn() method in Python is used to search for a pattern in a string and replace it with a new substring. It not only performs the replacement but also tells us how many...
read more
Python
python-regex
python
re.split() in Python
Last Updated: 30 December 2024
The re.split() method in Python is used to split a string by a pattern (using regular expressions). It is part of the re-module, which provides support for working with re...
read more
Python
Python Programs
python-regex
python
Python - Regex split()
Last Updated: 18 April 2025
re.split() method in Python is generally used to split a string by a specified pattern. Its working is similar to the standard split() function but adds more functionality...
read more
Python
python-regex
python
Python - re.compile()
Last Updated: 30 December 2024
In Python, re.compile() from the re module creates a regex object from a regular expression pattern. This object lets you perform operations like search(), match(), and fi...
read more
Python
python-regex
python
1
2
3
4
5
6
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 !