About 99,000 results
Open links in new tab
  1. 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).

  2. Regular Expression HOWTO — Python 3.14.2 documentation

    2 days 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 …

  3. Python RegEx - W3Schools

    A RegEx, or Regular Expression, is a sequence of characters that forms a search pattern. RegEx can be used to check if a string contains the specified search pattern.

  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 Expressions

    Regular expressions (called regex or regexp) specify search patterns. Typical examples of regular expressions are the patterns for matching email addresses, phone numbers, and credit card …

  7. 18 Python Regular Expressions Exercises and Examples

    Check out these examples to get a clear idea of how regular expressions work. Let’s jump right in. 1. Importing the re module. 2. Basic pattern matching using search () text = "I write code in Python." …

  8. 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 …

  9. Python Regular Expressions with 10 Examples | FOSS Linux

    Nov 6, 2023 · In this article, we will explore the “re” module and its methods, and how they can be used to perform regular expression operations in Python. Through ten examples, we will demonstrate how …

  10. Python Regular Expressions (RegEx) with examples

    Jul 7, 2024 · Learn how to use Python Regular Expressions with detailed examples. This guide covers basic regex patterns, metacharacters, character classes, grouping, capturing, finding matches, …