~/talk

Escape from Planet Regex - Kotlin to the Rescue

Talkat droidcon Berlin 2025 · 2025-09-24..09-26· [kotlin]
slides:none on file

Covers concrete regex techniques and how Kotlin actually runs them: Kotlin’s Regex wraps Java Pattern, use raw strings (triple quotes) to avoid escaping, pass options like ignoreCase/multiline and use findAll instead of /g flag, inspect MatchResult where index 0 is the whole match and later entries are capture groups so matchResult groups destructure to captured values. Demonstrates lookarounds to solve an Advent of Code style puzzle (filter moles preceded by “do” but not “don’t”), shows working Kotlin code that extracts numbers, multiplies them, and parses salary/hour examples.

AI-written summary · about

  1. 0:00Introduction
  2. 5:56Understanding Regular Expressions Basics
  3. 9:34Special chars and wildcards
  4. 11:40Occurrence indicators
  5. 14:25Anchors and multi-line flag
  6. 16:12Character ranges
  7. 18:21Alternation and scoping
  8. 19:44Character classes
  9. 20:47Capture groups
  10. 24:20Reax in Kotlin
  11. 26:05Reax options
  12. 27:52Match results
  13. 28:57Salary calculation
  14. 30:25Advent of Code 1
  15. 31:28Lookaheads and lookbehinds
  16. 33:36Zero-width assertions
  17. 35:00Advent of Code 2
  18. 36:23Activating console
  19. 37:28Conclusion
~/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.