Skip to content
geeksforgeeks
  • 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
Similar Topics
DSA
22.3k+ articles
Python
20.2k+ 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
Regex Cheat Sheet - Python
Last Updated: 14 March 2024
Regex or Regular Expressions are an important part of Python Programming or any other Programming Language. It is used for searching and eve ...read more
Technical Scripter
Python
python-regex
Technical Scripter 2020
re.MatchObject.group() function in Python Regex
Last Updated: 27 May 2021
re.MatchObject.group() method returns the complete matched subgroup by default or a tuple of matched subgroups depending on the number of ar ...read more
Python
python-regex
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 t...read more
image
Python
python-utility
python-regex
Python Regex-programs
Similar Topics
DSA
22.3k+ articles
Python
20.2k+ 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
Check if an URL is valid or not using Regular Expression
Last Updated: 07 December 2022
Given a URL as a character string str of size N.The task is to check if the given URL is valid or not.Examples :Input : str = "https://www.g ...read more
Strings
Pattern Searching
python-regex
java-regular-expression
CPP-regex
Java-URL
regular-expression
DSA
How to validate an IP address using ReGex
Last Updated: 15 February 2023
Given an IP address, the task is to validate this IP address with the help of Regex (Regular Expression) in C++ as a valid IPv4 address or I ...read more
Strings
Searching
Computer Networks
IP Addressing
python-regex
java-regular-expression
CPP-regex
regular-expression
DSA
Python Regex: re.search() VS re.findall()
Last Updated: 11 January 2022
Prerequisite: Regular Expression with Examples | PythonA Regular expression (sometimes called a Rational expression) is a sequence of charac ...read more
Python
python-regex
Python program to validate an IP Address
Last Updated: 22 April 2023
Prerequisite: Python RegexGiven an IP address as input, write a Python program to check whether the given IP Address is Valid or not.What is ...read more
Python
Python Programs
python-regex
Python Regex-programs
Check if email address valid or not in Python
Last Updated: 30 September 2024
Given a string, write a Python program to check if the string is a valid email address or not.An email is a string (a subset of ASCII charac ...read more
Python
Python Programs
python-regex
Python Regex-programs
Remove All Characters Except Letters and Numbers - Python
Last Updated: 19 April 2025
In this article, we’ll learn how to clean a string by removing everything except letters (A–Z, a–z) and numbers (0–9). This means ge ...read more
Python
Python Programs
python-regex
Python string-programs
Python Regex-programs
Replace values in Pandas dataframe using regex
Last Updated: 31 July 2023
While working with large sets of data, it often contains text data and in many cases, those texts are not pretty at all. The text is often i ...read more
Python
python-regex
Python-pandas
Python pandas-dataFrame
Pandas
AI-ML-DS With Python
Find all the numbers in a string using regular expression in Python
Last Updated: 08 May 2023
Given a string str containing numbers and alphabets, the task is to find all the numbers in str using regular expression.Examples:Input: abc ...read more
Arrays
Python
Python Programs
python-regex
Python Regex-programs
DSA
Program to check if a string contains any special character
Last Updated: 08 April 2024
Given a string, the task is to check if that string contains any special character (defined special character set). If any special character ...read more
Python
Python Programs
python-string
python-regex
Python string-programs
Python Regex-programs
Extracting email addresses using regular expressions in Python
Last Updated: 29 December 2020
Let suppose a situation in which you have to read some specific data like phone numbers, email addresses, dates, a collection of words etc. ...read more
image
Misc
Pattern Searching
Python
python-regex
Python Regex-programs
DSA
Check for URL in a String - Python
Last Updated: 12 April 2025
We are given a string that may contain one or more URLs and our task is to extract them efficiently. This is useful for web scraping, text p ...read more
Python
python-string
python-regex
Python string-programs
Python Regex-programs
Python program to check the validity of a Password
Last Updated: 06 September 2024
In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and checking whethe ...read more
Python
Python Programs
python-string
python-regex
Python string-programs
Python Regex-programs
1 2 3 4 5 6 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox