~/talk

Hands-On Regular Expressions in Python

Talkat PyCon US 2021 · 2021-05-14..05-15· [python]
slides:none on file

A hands‑on walkthrough uses Python’s re module to show wholegood details: re.search/re.sub and re.findall/re.finditer behavior, raw strings r'...', anchors, character classes, quantifiers, and the distinction between match objects and booleans. Demonstrations use flags=re.IGNORECASE and re.VERBOSE to make patterns case‑insensitive and readable, and show capturing versus non‑capturing groups plus alternation with |. Exercises run from exercises.zip and test.py on python3 and the test framework verifies patterns and substitutions as shown.

AI-written summary · about

  1. 0:00Start
  2. 4:39What Is Your Experience with Regular Expression
  3. 7:50Pattern Matching
  4. 16:15Regular Expressions
  5. 26:55Meta Characters
  6. 33:06Summary
  7. 35:02Change Directory
  8. 1:01:54Re Search Backslash D
  9. 1:08:35Matching Characters
  10. 1:21:29Ignore Case
  11. 1:22:03Quantifying on Flags
  12. 1:25:38Grouping
  13. 1:48:07Validate an Email Address
  14. 1:48:56Extracting Parts of Regular Expressions
  15. 1:59:00Non-Capturing Group Regular Expression
  16. 2:01:55Exercises
  17. 2:08:44Get Extension
  18. 2:17:33Grouping Py
  19. 2:30:29Alternation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.