Python documentation
docs.python.org βΊ 3 βΊ library βΊ re.html
re β Regular expression operations β Python 3.14.7 documentation
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched can be Unicode strings ( str) as well as 8-...
58:37
Master Python Regular Expressions in 1 Hour: Complete Guide - YouTube
12:47
Regular Expression Use Cases in Python - YouTube
08:37
Regular Expression Methods in Python - YouTube
18:58
Regular Expressions in Python - YouTube
25:29
Regular Expression Tutorial Python | Python Regex Tutorial - YouTube
Master Regular Expressions in Python: Unleash Hidden Patterns! ...
W3Schools
w3schools.com βΊ python βΊ python_regex.asp
Python RegEx
RegEx can be used to check if a string contains the specified search pattern. Python has a built-in package called re, which can be used to work with Regular Expressions.
MicroPython
docs.micropython.org βΊ en βΊ latest βΊ library βΊ re.html
re β simple regular expressions β MicroPython latest documentation
Due to this, itβs not recommended to use raw Python strings (r"") for regular expressions. For example, r"\r\n" when used as the regular expression is equivalent to "rn". To match CR character followed by LF, use "\r\n". ... import re # As re doesn't support escapes itself, use of r"" strings is not # recommended. regex = re.compile("[\r\n]") regex.split("line1\rline2\nline3\r\n") # Result: # ['line1', 'line2', 'line3', '', '']
Programiz
programiz.com βΊ python-programming βΊ regex
Python RegEx (With Examples)
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).
Python
docs.python.org βΊ 3.4 βΊ library βΊ re.html
6.2. re β Regular expression operations β Python 3.4.10 documentation
June 16, 2019 - It is important to note that most regular expression operations are available as module-level functions and methods on compiled regular expressions. The functions are shortcuts that donβt require you to compile a regex object first, but miss some fine-tuning parameters.
Rexegg
rexegg.com βΊ regex-python.php
Python Regex Tutorial
Python Regex Tutorial. Discusses the Python re and regex classes, provides working code for matching, replacing and splitting.
Python Module of the Week
pymotw.com βΊ 2 βΊ re
re β Regular Expressions - Python Module of the Week
import re text = 'This is some text -- with punctuation.' pattern = r'(?i)\bT\w+' regex = re.compile(pattern) print 'Text :', text print 'Pattern :', pattern print 'Matches :', regex.findall(text) Because the options control the way the entire expression is evaluated or parsed, they should always come at the beginning of the expression. $ python re_flags_embedded.py Text : This is some text -- with punctuation.
Dataquest
dataquest.io βΊ home βΊ cheat sheets βΊ python regex cheat sheet
Python Regex Cheat Sheet
July 22, 2025 - Download our Python regular expressions cheat sheet for syntax, character classes, groups, and re module functionsβideal for pattern matching.
Tutorialspoint
tutorialspoint.com βΊ python βΊ python_reg_expressions.htm
Python - Regular Expressions
A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern. Regular expression are popularly known as regex or regexp.
Readthedocs
pyformlang.readthedocs.io βΊ en βΊ latest βΊ modules βΊ regular_expression.html
Regular Expression β pyformlang 0.1.3 documentation
For a representation closer to Python one, please use PythonRegex Β· The concatenation can be represented either by a space or a dot β.β Β· The union is represented either by β|β or β+β ... It is also possible to use parentheses. All symbols except the space, β.β, β|β, β+β, β*β, β(β, β)β, βepsilonβ and β$β can be part of the alphabet. All other common regex operators (such as []) are syntactic sugar that can be reduced to the previous operators.
Python for Everybody
py4e.com βΊ html3 βΊ 11-regex
PY4E - Python for Everybody
It is possible to tell an asterisk ... your regex will match the very first instance rather than the last instance. In the example above, using .+?@ would instead match the first at-sign, the one in [email protected]. For more details, see the Python documentation on greedy ...