About 991,000 results
Open links in new tab
  1. Regular Expression HOWTO — Python 3.14.2 documentation

    1 day ago · Regular expressions (called REs, or regexes, or regex patterns) are essentially a tiny, highly specialized programming language embedded inside Python and made available through the re …

  2. Python RegEx - W3Schools

    Python has a built-in package called re, which can be used to work with Regular Expressions. Import the re module: When you have imported the re module, you can start using regular expressions: Search …

  3. Python RegEx (With Examples) - Programiz

    In this tutorial, you will learn about regular expressions (RegEx), and use Python's re module to work with RegEx (with the help of examples).

  4. Python RegEx - GeeksforGeeks

    Aug 14, 2025 · This Python code uses regular expressions to search for the word "portal" in the given string and then prints the start and end indices of the matched word within the string.

  5. Python Regular Expressions: A Comprehensive Guide with Examples

    Apr 5, 2025 · Regular expressions (regex) are a powerful tool in Python for pattern matching and text manipulation. They allow you to define search patterns that can be used to find, extract, or replace …

  6. Python regular expression cheatsheet and examples

    Jun 9, 2025 · This blog post gives an overview and examples of regular expression syntax as implemented by the re built-in module (Python 3.13+). Assume ASCII character set unless otherwise …

  7. Python Regular Expressions: Regex Explained with Examples

    Nov 6, 2025 · Python, being a highly versatile language, provides an efficient mechanism to deal with strings through regular expressions or regex.

  8. 18 Python Regular Expressions Exercises and Examples

    Regular expressions are a powerful tool for working with text data in Python. A regular expression is a sequence of characters that define a search pattern, which can be used for pattern-matching, …

  9. Python RegEx | Docs With Examples - Hackr

    Feb 25, 2025 · Python RegEx (regular expression) is a powerful tool for pattern matching and text manipulation. The re module provides built-in support for regex, allowing you to search, extract, and …

  10. Python RegEx - Regular Expression Tutorial With Examples

    Dec 6, 2025 · In this tutorial, we shall look at this game-changer called Regular Expression or Regex in short. Before we actually look at regular expressions, let’s see how we can find a phone number in a …