~/talk

Efficient Matching of Regular Expressions with Lookaround Assertions

Talkat POPL 2024 · 2024-01-14..01-20· [compilers-and-language-design]
links:none on file
slides:none on file

States a formal semantics for lookaround, gives an algorithm that matches regexes with lookaround in O(m·n) time by evaluating assertions bottom-up, and implements a new automaton model called oracle-NFAs that consult precomputed oracle tapes for truth values at each position. Memory is dominated by storing per-assertion tapes (growing with K·n), unidirectional patterns need only a single pass, and experiments report linear time where the optimized implementation is tens to thousands of times faster than PCRE/Java on tested workloads.

AI-written summary · about

  1. 0:00Regex with lookaround
  2. 1:47Lookaround examples
  3. 4:17Formal semantics for lookaround
  4. 7:32Regex matching limits
  5. 9:17Automata challenges
  6. 9:58Efficient lookaround algorithm
  7. 12:33Oracle NFA memory
  8. 13:57Algorithm complexity
  9. 14:18Optimizing unidirectional regex
  10. 15:21Performance results
  11. 16:25Summary and conclusions
  12. 17:09Q&A on back references
~/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.