Escape from Planet Regex - Kotlin to the Rescue
summary
Walks through Reax from literals and flags to greedy vs lazy quantifiers, character classes, capture groups and lookarounds, then shows exact Cotlin code: using Cotlin's Regex class with raw triple‑quoted strings to avoid escaping, findAll vs find, MatchResult groups/destructuring, and a practical Advent of Code solution that uses a complex lookaround to include "do" but exclude "don't". Examples run and extract numbers (amount/hour) so you can copy the pattern and the Cotlin extraction code verbatim.
AI-written summary · about
chapters (19)
- 0:00Planet Reax crisis
- 3:20Captain Cadell and USS Singleton
- 6:10Regular expressions basics
- 9:39Special regex characters
- 11:25Occurrence indicators
- 14:13Anchors and multi-line mode
- 15:59Character sets and negations
- 18:05Alternation and selection
- 19:30Character classes
- 20:11Capture groups
- 23:44K7’s compromise
- 24:07Kotlin Regex class
- 25:33Regex functions in Kotlin
- 27:42Destructuring capture groups
- 29:48Alien console challenge
- 31:14Lookarounds
- 34:22Complex regex problems
- 36:47K7’s sacrifice
- 37:29Closing remarks








