# learnbyexample/py_regular_expressions

Learn Python Regular Expressions step by step from beginner to advanced levels

Repository: https://github.com/learnbyexample/py_regular_expressions
Canonical: https://ross.abutalabs.com/products/py_regular_expressions
Homepage: https://learnbyexample.github.io/py_regular_expressions/
Language: Python
License: MIT
License Family: permissive
Topics: python, regular-expressions, regex, ebook, learning-by-doing, exercises
Last push: 2025-12-15T08:43:03+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 57, release rhythm 35, longevity 100
- inputs: {"age_days": 2791, "days_push": 261, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1829, forks 229 (observed 2026-08-28T04:05:41.705716+00:00)

## What it is
An open-source ebook, 'Understanding Python re(gex)?', that teaches Python regular expressions step by step from beginner to advanced levels with hundreds of examples and exercises. It covers both the standard library 're' module and the third-party 'regex' module, and is available as markdown, web, pdf, and epub versions.

## Use cases
- learn python regular expressions from scratch
- practice regex with exercises and solutions
- understand the re module and regex module differences
- find regex examples for text pattern matching in python
- prepare for tasks involving text parsing and substitution
- refresh advanced regex concepts like lookarounds and backreferences

## When to choose
- you want a structured, example-driven tutorial on Python regex
- you prefer learning by doing with exercises and solutions
- you need a free, regularly updated reference covering both re and regex modules

## When to avoid
- you need a general Python tutorial beyond regular expressions
- you want regex guidance for languages other than Python
- you need an interactive tool rather than reading material

## Facets
- artifact type: learning-resource
- maturity: active
- function: nlp, developer-tools, documentation
- domain: tutorials, programming-languages, education
- platform: python, cross-platform
- tags: regex, ebook, exercises, learning-by-doing, python-re-module

## Member repositories
- learnbyexample/py_regular_expressions (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.705716+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:22.672229+00:00, confidence not recorded.
  - readme: https://github.com/learnbyexample/py_regular_expressions (fetched 2026-08-28T04:05:41.705716+00:00, sha be1ddcfa510d)
  - homepage: https://learnbyexample.github.io/py_regular_expressions/ (fetched 2026-08-29T10:58:25.425480+00:00, sha 3a133256b80e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
