~/talk

All About Regular Expressions

Talkat Strange Loop 2022 · 2022-09-22..09-24· [compilers-and-language-design]
links:none on file
slides:none on file

History and concrete tradeoffs: Thompson NFA compilation (1968) shows how regex compile to state machines and powers linear-time search used in grep which actually came from the QED editor; Aho–Corasick /egrep introduces character classes and fast string algorithms; popular engines like PCRE use backtracking and can suffer exponential slowdowns on crafted inputs; Russ Cox proves this empirically and ships RE2, a linear-time NFA engine that forbids backreferences to avoid pathological worst cases.

AI-written summary · about

  1. 0:00Start
  2. 0:59Overview
  3. 5:00The Rand Project
  4. 7:00The Star Operator
  5. 8:19Finite Automata and Their Decision Problems
  6. 8:57Deterministic and Non-Deterministic Automata
  7. 13:05Regular Expression
  8. 24:19The Rules for Regular Expressions
  9. 29:17Efficient String Matching
~/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.