~/talk

The Magic Of Regular Expressions

Talkat JavaDay Ukraine 2017 · 2017-11-04..11-05· [testing]
slides:none on file

Brief, practical walkthrough of regular-expression gotchas that shows real code and fixes: a colleague’s email validator that devolves to returning true, a log4j snippet used as test data, and an IP regex that starts too permissive then gains digit-range logic to correctly match IPv4. Demonstrates greedy vs non‑greedy fixes for HTML-tag overmatching, lookahead/lookbehind for selective matches, and backtracking performance traps. Uses visual tools regex101 and regexper (train diagrams) and cites the monstrous 82-line email regex as a reason not to reinvent validation.

AI-written summary · about

  1. 0:00Start
  2. 4:14The Vision
  3. 5:40The Reality
  4. 10:06Log4j Log File
  5. 21:13Recap: Quantifiers
  6. 22:07Recap: Grouping
  7. 25:05Recap: Lookaround
  8. 25:41Lookahead: Example
  9. 27:07Backreferences (contd.)
  10. 31:19Quantifiers Revisited
  11. 32:01Final Recap
  12. 35:07MOAR! EXAMPLES!
  13. 39:04The Email Regex Horror
  14. 41:16Your New Reality!
  15. 42:03Thank you!
~/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.