Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Python
20.1k+ articles
Python Programs
4.1k+ articles
Strings
3.2k+ articles
Python-pandas
1.6k+ articles
python
1.1k+ articles
Python string-programs
560+ articles
python-string
240+ articles
java-regular-expression
90 articles
Python Regex-programs
38 articles
python-regex
79 posts
Popular Articles
Recent Articles
re.fullmatch() function in Python
Last Updated: 16 March 2021
re.fullmatch() returns a match object if and only if the entire string matches the pattern. Otherwise, it will return None. The flag at the
...read more
Python
python-regex
Python - Regex Lookbehind
Last Updated: 20 January 2025
Regex Lookbehind is used as an assertion in Python regular expressions(re) to determine success or failure whether the pattern is behind i.e
...read more
Python
python-regex
How to check a valid regex string using Python?
Last Updated: 31 July 2023
A Regex (Regular Expression) is a sequence of characters used for defining a pattern. This pattern could be used for searching, replacing an
...read more
Python
python-regex
Picked
Similar Topics
DSA
22.3k+ articles
Python
20.1k+ articles
Python Programs
4.1k+ articles
Strings
3.2k+ articles
Python-pandas
1.6k+ articles
python
1.1k+ articles
Python string-programs
560+ articles
python-string
240+ articles
java-regular-expression
90+ articles
Python Regex-programs
38+ articles
Python - Regex Lookahead
Last Updated: 03 January 2021
Lookahead is used as an assertion in Python regular expressions to determine success or failure whether the pattern is ahead i.e to the righ
...read more
Python
python-regex
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.' ,
...read more
Python
Python Programs
python-regex
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 define
...read more
Python
python-regex
Python Regex-programs
Parsing and Processing URL using Python - Regex
Last Updated: 02 September 2020
Prerequisite: Regular Expression in PythonURL or Uniform Resource Locator consists of many information parts, such as the domain name, path,
...read more
Python
python-regex
re.MatchObject.span() Method in Python - regex
Last Updated: 02 September 2020
re.MatchObject.span() method returns a tuple containing starting and ending index of the matched string. If group did not contribute to the
...read more
Python
python-regex
re.MatchObject.groupdict() function in Python - Regex
Last Updated: 29 August 2020
This method returns a dictionary with the groupname as keys and the matched string as the value for that key.Syntax: re.MatchObject.groupdic
...read more
Python
python-regex
Python - Substituting patterns in text using regex
Last Updated: 29 December 2020
Regular Expression (regex) is meant for pulling out the required information from any text which is based on patterns. They are also widely
...read more
Python
Python Programs
python-regex
Write From Home
Python Regex-programs
Python - Check whether a string starts and ends with the same character or not (using Regular Expression)
Last Updated: 31 July 2023
Given a string. The task is to write a regular expression to check whether a string starts and ends with the same character.Examples:Input :
...read more
Python
Python Programs
python-regex
Python Regex-programs
Remove duplicate words from Sentence using Regular Expression
Last Updated: 09 April 2024
Given a string str which represents a sentence, the task is to remove the duplicate words from sentences using regular Expression in Program
...read more
Java
Programming Language
python-regex
java-regular-expression
CPP-regex
Verbose in Python Regex
Last Updated: 19 July 2019
In this article, we will learn about VERBOSE flag of the re package and how to use it.re.VERBOSE : This flag allows you to write regular exp
...read more
Python
python-regex
Python regex to find sequences of one upper case letter followed by lower case letters
Last Updated: 06 September 2024
Write a Python Program to find sequences of one upper case letter followed by lower case letters. If found, print 'Yes', otherwise 'No'. Exa
...read more
Python
Python Programs
python-regex
Python Regex-programs
Regular Expressions in Python - Set 2 (Search, Match and Find All)
Last Updated: 14 December 2021
Regular Expression in Python with Examples | Set 1The module re provides support for regular expressions in Python. Below are main methods i
...read more
Python
python-regex
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
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 !